/frameworks/base/media/java/android/media/ |
D | AudioTrack.java | 263 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument 266 this(streamType, sampleRateInHz, channelConfig, audioFormat, in AudioTrack() 303 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument 313 audioParamCheck(streamType, sampleRateInHz, channelConfig, audioFormat, mode); in AudioTrack() 351 private void audioParamCheck(int streamType, int sampleRateInHz, in audioParamCheck() argument 369 if ( (sampleRateInHz < 4000) || (sampleRateInHz > 48000) ) { in audioParamCheck() 370 throw (new IllegalArgumentException(sampleRateInHz in audioParamCheck() 373 mSampleRate = sampleRateInHz; in audioParamCheck() 611 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { in getMinBufferSize() argument 633 if ( (sampleRateInHz < 4000) || (sampleRateInHz > 48000) ) { in getMinBufferSize() [all …]
|
D | AudioRecord.java | 217 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, in AudioRecord() argument 228 audioParamCheck(audioSource, sampleRateInHz, channelConfig, audioFormat); in AudioRecord() 259 private void audioParamCheck(int audioSource, int sampleRateInHz, in audioParamCheck() argument 273 if ( (sampleRateInHz < 4000) || (sampleRateInHz > 48000) ) { in audioParamCheck() 274 throw (new IllegalArgumentException(sampleRateInHz in audioParamCheck() 277 mSampleRate = sampleRateInHz; in audioParamCheck() 460 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { in getMinBufferSize() argument 484 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); in getMinBufferSize() 809 int sampleRateInHz, int channelCount, int audioFormat); in native_get_min_buff_size() argument
|
/frameworks/base/core/java/android/speech/tts/ |
D | FileSynthesisCallback.java | 97 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument 99 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat in start() 111 mSampleRateInHz = sampleRateInHz; in start() 190 private byte[] makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, in makeWavHeader() argument 194 int byteRate = sampleRateInHz * sampleSizeInBytes * channelCount; in makeWavHeader() 209 header.putInt(sampleRateInHz); in makeWavHeader()
|
D | PlaybackSynthesisCallback.java | 129 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument 131 Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat in start() 147 mStreamType, sampleRateInHz, audioFormat, channelCount, mVolume, mPan, in start()
|
D | SynthesisCallback.java | 51 public int start(int sampleRateInHz, int audioFormat, int channelCount); in start() argument
|
D | AudioPlaybackHandler.java | 560 final int sampleRateInHz = params.mSampleRateInHz; in createStreamingAudioTrack() local 564 = AudioTrack.getMinBufferSize(sampleRateInHz, channelConfig, audioFormat); in createStreamingAudioTrack() 567 AudioTrack audioTrack = new AudioTrack(params.mStreamType, sampleRateInHz, channelConfig, in createStreamingAudioTrack()
|
/frameworks/base/core/jni/ |
D | android_media_AudioTrack.cpp | 595 jint sampleRateInHz) { in android_media_AudioTrack_set_playback_rate() argument 600 return android_media_translateErrorCode(lpTrack->setSampleRate(sampleRateInHz)); in android_media_AudioTrack_set_playback_rate()
|