SHARE
TWEET

Untitled

a guest Jul 18th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int bufsize = AudioTrack.getMinBufferSize(16000,
  2. AudioFormat.CHANNEL_OUT_STEREO,
  3. AudioFormat.ENCODING_PCM_16BIT);
  4.  
  5. AudioTrack audioTrack = new AudioTrack(AudioManager.STREAM_VOICE_CALL,
  6.                                                     16000,
  7.                           AudioFormat.CHANNEL_OUT_STEREO,
  8.                           AudioFormat.ENCODING_PCM_16BIT,
  9.                           bufsize,
  10.                           AudioTrack.MODE_STREAM);
  11. audioTrack.play();
  12.      
  13. audioTrack.write(byte[], int, int);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top