Created
February 24, 2016 16:39
-
-
Save Piasy/ef898e7e62fc5fbd1189 to your computer and use it in GitHub Desktop.
RxAndroidAudio blog code snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public synchronized int getMaxAmplitude(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Observable<Integer> from(@NonNull AudioRecorder audioRecorder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean playNonRxy(@NonNull final File audioFile, | |
final MediaPlayer.OnCompletionListener onCompletionListener, | |
final MediaPlayer.OnErrorListener onErrorListener); | |
public boolean playNonRxy(final Context context, @RawRes final int audioRes, | |
final MediaPlayer.OnCompletionListener onCompletionListener, | |
final MediaPlayer.OnErrorListener onErrorListener); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Single<Boolean> play(@NonNull final File audioFile); | |
public Single<Boolean> play(final Context context, @RawRes final int audioRes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment