¡@

Home 

2014/10/16 ¤W¤È 08:10:18

android Programming Glossary: audioformat.encoding_pcm_16bit

Android - Getting audio to play through earpiece

http://stackoverflow.com/questions/2119060/android-getting-audio-to-play-through-earpiece

11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT AudioRecord arec new AudioRecord MediaRecorder.AudioSource.MIC.. 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize AudioTrack atrack new AudioTrack AudioManager.STREAM_MUSIC.. 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize AudioTrack.MODE_STREAM am.setRouting AudioManager.MODE_NORMAL..

Playing an arbitrary tone with Android

http://stackoverflow.com/questions/2413426/playing-an-arbitrary-tone-with-android

sampleRate AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT generatedSnd.length AudioTrack.MODE_STATIC audioTrack.write..

Android AudioRecord class - process live mic audio quickly, set up callback function

http://stackoverflow.com/questions/4525206/android-audiorecord-class-process-live-mic-audio-quickly-set-up-callback-func

8000 AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT recorder new AudioRecord AudioSource.MIC 8000 AudioFormat.CHANNEL_IN_MONO.. AudioSource.MIC 8000 AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT N 10 recorder.startRecording ... loop while stopped short..

AudioRecord object not initializing

http://stackoverflow.com/questions/4843739/audiorecord-object-not-initializing

private int encoding AudioFormat.ENCODING_PCM_16BIT private int result 0 private int bufferSize private byte buffer.. short audioFormat new short AudioFormat.ENCODING_PCM_8BIT AudioFormat.ENCODING_PCM_16BIT for short channelConfig new short AudioFormat.CHANNEL_IN_MONO..

How to decode audio via FFmpeg in Android

http://stackoverflow.com/questions/5367595/how-to-decode-audio-via-ffmpeg-in-android

44100 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT track new AudioTrack AudioManager.STREAM_MUSIC 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO.. 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT bufSize AudioTrack.MODE_STREAM track.play while true readBufferFromNative..

Capturing Sound for Analysis and Visualizing Frequencies in Android

http://stackoverflow.com/questions/5511250/capturing-sound-for-analysis-and-visualizing-frequencies-in-android

AudioFormat.CHANNEL_CONFIGURATION_MONO int audioEncoding AudioFormat.ENCODING_PCM_16BIT private RealDoubleFFT transformer int blockSize 256 Button startStopButton.. AudioFormat.CHANNEL_CONFIGURATION_MONO int audioEncoding AudioFormat.ENCODING_PCM_16BIT private RealDoubleFFT transformer int blockSize 256 Button startStopButton.. frequency AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT int bufferSize AudioRecord.getMinBufferSize frequency channelConfiguration..

Android audio FFT to retrieve specific frequency magnitude using audiorecord

http://stackoverflow.com/questions/5774104/android-audio-fft-to-retrieve-specific-frequency-magnitude-using-audiorecord

AudioFormat.CHANNEL_CONFIGURATION_MONO int format AudioFormat.ENCODING_PCM_16BIT int sampleSize 8000 int bufferSize AudioRecord.getMinBufferSize..

Android: Need to record mic input

http://stackoverflow.com/questions/6959930/android-need-to-record-mic-input

8000 AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT recorder new AudioRecord AudioSource.MIC 8000 AudioFormat.CHANNEL_IN_MONO.. AudioSource.MIC 8000 AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT N 10 track new AudioTrack AudioManager.STREAM_MUSIC 8000 AudioFormat.CHANNEL_OUT_MONO.. 8000 AudioFormat.CHANNEL_OUT_MONO AudioFormat.ENCODING_PCM_16BIT N 10 AudioTrack.MODE_STREAM recorder.startRecording track.play..

Live Audio Recording and Playing in Android and Thread & callback handling

http://stackoverflow.com/questions/9413998/live-audio-recording-and-playing-in-android-and-thread-callback-handling

new int 8000 11025 22050 44100 short audioFormat AudioFormat.ENCODING_PCM_16BIT for int rate mSampleRates this.recordingSampleRate AudioTrack.getNativeOutputSampleRate.. SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT if buffersize BUF_SIZE buffersize BUF_SIZE Log.i LOG_TAG Initializing.. SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize 1 m_track new AudioTrack AudioManager.STREAM_ALARM..

Android - Getting audio to play through earpiece

http://stackoverflow.com/questions/2119060/android-getting-audio-to-play-through-earpiece

int buffersize AudioRecord.getMinBufferSize 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT AudioRecord arec new AudioRecord MediaRecorder.AudioSource.MIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT.. AudioRecord arec new AudioRecord MediaRecorder.AudioSource.MIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize AudioTrack atrack new AudioTrack AudioManager.STREAM_MUSIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT.. buffersize AudioTrack atrack new AudioTrack AudioManager.STREAM_MUSIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize AudioTrack.MODE_STREAM am.setRouting AudioManager.MODE_NORMAL 1 AudioManager.STREAM_MUSIC int ok am.getRouting..

Playing an arbitrary tone with Android

http://stackoverflow.com/questions/2413426/playing-an-arbitrary-tone-with-android

AudioTrack audioTrack new AudioTrack AudioManager.STREAM_MUSIC sampleRate AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT generatedSnd.length AudioTrack.MODE_STATIC audioTrack.write generatedSnd 0 generatedSnd.length audioTrack.play share..

Android AudioRecord class - process live mic audio quickly, set up callback function

http://stackoverflow.com/questions/4525206/android-audiorecord-class-process-live-mic-audio-quickly-set-up-callback-func

new short 256 160 int ix 0 try ... initialise int N AudioRecord.getMinBufferSize 8000 AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT recorder new AudioRecord AudioSource.MIC 8000 AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT N.. AudioFormat.ENCODING_PCM_16BIT recorder new AudioRecord AudioSource.MIC 8000 AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT N 10 recorder.startRecording ... loop while stopped short buffer buffers ix buffers.length N recorder.read buffer..

AudioRecord object not initializing

http://stackoverflow.com/questions/4843739/audiorecord-object-not-initializing

private int sampleRate 22050 private int channel AudioFormat.CHANNEL_CONFIGURATION_MONO private int encoding AudioFormat.ENCODING_PCM_16BIT private int result 0 private int bufferSize private byte buffer Called when the activity is first created. @Override public.. AudioRecord findAudioRecord for int rate mSampleRates for short audioFormat new short AudioFormat.ENCODING_PCM_8BIT AudioFormat.ENCODING_PCM_16BIT for short channelConfig new short AudioFormat.CHANNEL_IN_MONO AudioFormat.CHANNEL_IN_STEREO try Log.d C.TAG Attempting..

How to decode audio via FFmpeg in Android

http://stackoverflow.com/questions/5367595/how-to-decode-audio-via-ffmpeg-in-android

JAVA side. AudioTrack track int bufSize AudioTrack.getMinBufferSize 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT track new AudioTrack AudioManager.STREAM_MUSIC 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT.. track new AudioTrack AudioManager.STREAM_MUSIC 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT bufSize AudioTrack.MODE_STREAM track.play while true readBufferFromNative update buffer from native code ......................

Capturing Sound for Analysis and Visualizing Frequencies in Android

http://stackoverflow.com/questions/5511250/capturing-sound-for-analysis-and-visualizing-frequencies-in-android

OnClickListener int frequency 8000 int channelConfiguration AudioFormat.CHANNEL_CONFIGURATION_MONO int audioEncoding AudioFormat.ENCODING_PCM_16BIT private RealDoubleFFT transformer int blockSize 256 Button startStopButton boolean started false RecordAudio recordTask.. OnClickListener int frequency 8000 int channelConfiguration AudioFormat.CHANNEL_CONFIGURATION_MONO int audioEncoding AudioFormat.ENCODING_PCM_16BIT private RealDoubleFFT transformer int blockSize 256 Button startStopButton boolean started false RecordAudio recordTask.. doInBackground Void... arg0 try int bufferSize AudioRecord.getMinBufferSize frequency AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT int bufferSize AudioRecord.getMinBufferSize frequency channelConfiguration audioEncoding AudioRecord audioRecord new..

Android audio FFT to retrieve specific frequency magnitude using audiorecord

http://stackoverflow.com/questions/5774104/android-audio-fft-to-retrieve-specific-frequency-magnitude-using-audiorecord

have set up the class using the AudioRecord class int channel_config AudioFormat.CHANNEL_CONFIGURATION_MONO int format AudioFormat.ENCODING_PCM_16BIT int sampleSize 8000 int bufferSize AudioRecord.getMinBufferSize sampleSize channel_config format AudioRecord audioInput..

Android: Need to record mic input

http://stackoverflow.com/questions/6959930/android-need-to-record-mic-input

data start recording and start playback. try int N AudioRecord.getMinBufferSize 8000 AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT recorder new AudioRecord AudioSource.MIC 8000 AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT N 10 track new.. AudioFormat.ENCODING_PCM_16BIT recorder new AudioRecord AudioSource.MIC 8000 AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT N 10 track new AudioTrack AudioManager.STREAM_MUSIC 8000 AudioFormat.CHANNEL_OUT_MONO AudioFormat.ENCODING_PCM_16BIT N.. AudioFormat.ENCODING_PCM_16BIT N 10 track new AudioTrack AudioManager.STREAM_MUSIC 8000 AudioFormat.CHANNEL_OUT_MONO AudioFormat.ENCODING_PCM_16BIT N 10 AudioTrack.MODE_STREAM recorder.startRecording track.play Loops until something outside of this thread stops it...

Live Audio Recording and Playing in Android and Thread & callback handling

http://stackoverflow.com/questions/9413998/live-audio-recording-and-playing-in-android-and-thread-callback-handling

constructor private void init LOG_TAG initFunc int mSampleRates new int 8000 11025 22050 44100 short audioFormat AudioFormat.ENCODING_PCM_16BIT for int rate mSampleRates this.recordingSampleRate AudioTrack.getNativeOutputSampleRate AudioManager.STREAM_MUSIC try Log.d.. AudioTrack try buffersize AudioRecord.getMinBufferSize SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT if buffersize BUF_SIZE buffersize BUF_SIZE Log.i LOG_TAG Initializing Audio Record and Audio Playing objects m_record.. objects m_record new AudioRecord MediaRecorder.AudioSource.MIC SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize 1 m_track new AudioTrack AudioManager.STREAM_ALARM SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT..