Skip to content

Instantly share code, notes, and snippets.

@Piasy
Created February 24, 2016 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Piasy/ef898e7e62fc5fbd1189 to your computer and use it in GitHub Desktop.
Save Piasy/ef898e7e62fc5fbd1189 to your computer and use it in GitHub Desktop.
RxAndroidAudio blog code snippet
public synchronized int getMaxAmplitude();
public static Observable<Integer> from(@NonNull AudioRecorder audioRecorder);
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);
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