/frameworks/base/core/java/android/speech/tts/ |
H A D | SynthesisCallback.java | 49 * @param audioFormat Audio format of the generated audio. Must be one of 55 public int start(int sampleRateInHz, int audioFormat, int channelCount); argument
|
H A D | FileSynthesisCallback.java | 105 public int start(int sampleRateInHz, int audioFormat, int channelCount) { argument 107 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat 126 mAudioFormat = audioFormat; 195 int audioFormat = 0; 221 audioFormat = mAudioFormat; 230 makeWavHeader(sampleRateInHz, audioFormat, channelCount, dataLength)); 279 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, argument 281 int sampleSizeInBytes = AudioFormat.getBytesPerSample(audioFormat);
|
H A D | PlaybackSynthesisCallback.java | 122 public int start(int sampleRateInHz, int audioFormat, int channelCount) { argument 123 if (DBG) Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat + "," + channelCount 147 mAudioParams, sampleRateInHz, audioFormat, channelCount,
|
H A D | SynthesisPlaybackQueueItem.java | 67 int audioFormat, int channelCount, UtteranceProgressDispatcher dispatcher, 77 mAudioTrack = new BlockingAudioTrack(audioParams, sampleRate, audioFormat, channelCount); 66 SynthesisPlaybackQueueItem(AudioOutputParams audioParams, int sampleRate, int audioFormat, int channelCount, UtteranceProgressDispatcher dispatcher, Object callerIdentity, AbstractEventLogger logger) argument
|
H A D | BlockingAudioTrack.java | 80 int audioFormat, int channelCount) { 83 mAudioFormat = audioFormat; 218 AudioFormat audioFormat = (new AudioFormat.Builder()) 223 audioFormat, bufferSizeInBytes, AudioTrack.MODE_STREAM, 79 BlockingAudioTrack(AudioOutputParams audioParams, int sampleRate, int audioFormat, int channelCount) argument
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothAudioConfig.java | 35 public BluetoothAudioConfig(int sampleRate, int channelConfig, int audioFormat) { argument 38 mAudioFormat = audioFormat; 72 int audioFormat = in.readInt(); 73 return new BluetoothAudioConfig(sampleRate, channelConfig, audioFormat);
|
/frameworks/base/core/jni/ |
H A D | android_media_AudioFormat.h | 36 static inline audio_format_t audioFormatToNative(int audioFormat) argument 38 switch (audioFormat) {
|
H A D | android_media_AudioRecord.cpp | 150 jint audioFormat, jint buffSizeInBytes, jintArray jSession) 153 //ALOGV("sampleRate=%d, audioFormat=%d, channel mask=%x, buffSizeInBytes=%d", 154 // sampleRateInHertz, audioFormat, channelMask, buffSizeInBytes); 168 audio_format_t format = audioFormatToNative(audioFormat); 170 ALOGE("Error creating AudioRecord: unsupported audio format %d.", audioFormat); 547 jint sampleRateInHertz, jint channelCount, jint audioFormat) { 550 sampleRateInHertz, channelCount, audioFormat); 553 audio_format_t format = audioFormatToNative(audioFormat); 147 android_media_AudioRecord_setup(JNIEnv *env, jobject thiz, jobject weak_this, jobject jaa, jint sampleRateInHertz, jint channelMask, jint audioFormat, jint buffSizeInBytes, jintArray jSession) argument 546 android_media_AudioRecord_get_min_buff_size(JNIEnv *env, jobject thiz, jint sampleRateInHertz, jint channelCount, jint audioFormat) argument
|
H A D | android_media_AudioTrack.cpp | 189 jint audioFormat, jint buffSizeInBytes, jint memoryMode, jintArray jSession) { 191 ALOGV("sampleRate=%d, audioFormat(from Java)=%d, channel mask=%x, buffSize=%d", 192 sampleRateInHertz, audioFormat, javaChannelMask, buffSizeInBytes); 212 audio_format_t format = audioFormatToNative(audioFormat); 214 ALOGE("Error creating AudioTrack: unsupported audio format %d.", audioFormat); 514 jint writeToTrack(const sp<AudioTrack>& track, jint audioFormat, const jbyte* data, argument 526 const audio_format_t format = audioFormatToNative(audioFormat); 937 jint sampleRateInHertz, jint channelCount, jint audioFormat) { 947 const audio_format_t format = audioFormatToNative(audioFormat); 186 android_media_AudioTrack_setup(JNIEnv *env, jobject thiz, jobject weak_this, jobject jaa, jint sampleRateInHertz, jint javaChannelMask, jint audioFormat, jint buffSizeInBytes, jint memoryMode, jintArray jSession) argument 936 android_media_AudioTrack_get_min_buff_size(JNIEnv *env, jobject thiz, jint sampleRateInHertz, jint channelCount, jint audioFormat) argument
|
/frameworks/base/media/java/android/media/ |
H A D | AudioFormat.java | 213 public static int getBytesPerSample(int audioFormat) argument 215 switch (audioFormat) { 225 throw new IllegalArgumentException("Bad audio format " + audioFormat); 230 public static boolean isValidEncoding(int audioFormat) argument 232 switch (audioFormat) { 245 public static boolean isEncodingLinearPcm(int audioFormat) argument 247 switch (audioFormat) { 258 throw new IllegalArgumentException("Bad audio format " + audioFormat);
|
H A D | AudioRecord.java | 213 * @param audioFormat the format in which the audio data is represented. 223 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, argument 232 .setEncoding(audioFormat) 372 private void audioParamCheck(int audioSource, int sampleRateInHz, int audioFormat) argument 395 switch (audioFormat) { 401 mAudioFormat = audioFormat; 544 * @param audioFormat the format in which the audio data is represented. 553 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { argument 573 if (audioFormat != AudioFormat.ENCODING_PCM_16BIT) { 578 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); 921 native_setup(Object audiorecord_this, Object attributes, int sampleRate, int channelMask, int audioFormat, int buffSizeInBytes, int[] sessionId) argument 949 native_get_min_buff_size( int sampleRateInHz, int channelCount, int audioFormat) argument [all...] |
H A D | AudioTrack.java | 296 * @param audioFormat the format in which the audio data is represented. 313 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, argument 316 this(streamType, sampleRateInHz, channelConfig, audioFormat, 340 * @param audioFormat the format in which the audio data is represented. 355 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, argument 364 .setEncoding(audioFormat) 484 int channelConfig, int audioFormat, int mode) { 520 if (audioFormat == AudioFormat.ENCODING_DEFAULT) { 521 audioFormat = AudioFormat.ENCODING_PCM_16BIT; 524 if (!AudioFormat.isValidEncoding(audioFormat)) { 483 audioParamCheck(int sampleRateInHz, int channelConfig, int audioFormat, int mode) argument 811 getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) argument 1634 native_setup(Object audiotrack_this, Object attributes, int sampleRate, int channelMask, int audioFormat, int buffSizeInBytes, int mode, int[] sessionId) argument 1693 native_get_min_buff_size( int sampleRateInHz, int channelConfig, int audioFormat) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | AudioPlayer.cpp | 136 audio_format_t audioFormat = AUDIO_FORMAT_PCM_16_BIT; local 139 if (mapMimeToAudioFormat(audioFormat, mime) != OK) { 141 audioFormat = AUDIO_FORMAT_INVALID; 143 ALOGV("Mime type \"%s\" mapped to audio_format 0x%x", mime, audioFormat); 147 if ((audioFormat == AUDIO_FORMAT_AAC) && format->findInt32(kKeyAACAOT, &aacaot)) { 149 mapAACProfileToAudioFormat(audioFormat,(OMX_AUDIO_AACPROFILETYPE) aacaot); 176 offloadInfo.format = audioFormat; 184 mSampleRate, numChannels, channelMask, audioFormat,
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | MediaDecoder.java | 264 MediaFormat audioFormat = mMediaExtractor.getTrackFormat(mAudioTrackIndex); 265 mAudioTrackDecoder = new AudioTrackDecoder(mAudioTrackIndex, audioFormat, this);
|
/frameworks/base/media/java/android/media/projection/ |
H A D | MediaProjection.java | 148 int audioFormat, int bufferSizeInBytes) { 146 createAudioRecord( int sampleRateInHz, int channelConfig, int audioFormat, int bufferSizeInBytes) argument
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerRenderer.cpp | 1428 audio_format_t audioFormat = AUDIO_FORMAT_PCM_16_BIT; local 1431 status_t err = mapMimeToAudioFormat(audioFormat, mime.c_str()); 1439 mime.c_str(), audioFormat); 1445 if (audioFormat == AUDIO_FORMAT_AAC 1449 audioFormat, 1459 offloadInfo.format = audioFormat; 1482 audioFormat, 1517 AUDIO_FORMAT_PCM_16_BIT, // TODO: change to audioFormat
|
/frameworks/base/core/java/android/service/voice/ |
H A D | AlwaysOnHotwordDetector.java | 217 AudioFormat audioFormat, int captureSession, byte[] data) { 221 mAudioFormat = audioFormat; 216 EventPayload(boolean triggerAvailable, boolean captureAvailable, AudioFormat audioFormat, int captureSession, byte[] data) argument
|