/frameworks/base/core/java/android/bluetooth/ |
BluetoothAudioConfig.java | 35 public BluetoothAudioConfig(int sampleRate, int channelConfig, int audioFormat) { 38 mAudioFormat = audioFormat; 72 int audioFormat = in.readInt(); 73 return new BluetoothAudioConfig(sampleRate, channelConfig, audioFormat); 95 * Returns the channel configuration (either {@link android.media.AudioFormat#CHANNEL_IN_MONO} 96 * or {@link android.media.AudioFormat#CHANNEL_IN_STEREO}) 104 * Returns the channel audio format (either {@link android.media.AudioFormat#ENCODING_PCM_16BIT} 105 * or {@link android.media.AudioFormat#ENCODING_PCM_8BIT}
|
/frameworks/base/core/java/android/speech/tts/ |
FileSynthesisCallback.java | 19 import android.media.AudioFormat; 102 public int start(int sampleRateInHz, int audioFormat, int channelCount) { 104 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat 107 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT && 108 audioFormat != AudioFormat.ENCODING_PCM_16BIT && 109 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) { 110 Log.e(TAG, "Audio format encoding " + audioFormat + " not supported. Please use one " [all...] |
ITextToSpeechCallback.aidl | 65 * @param audioFormat The audio format of the generated audio in the {@link #onAudioAvailable} 66 * call. Should be one of {@link android.media.AudioFormat.ENCODING_PCM_8BIT}, 67 * {@link android.media.AudioFormat.ENCODING_PCM_16BIT} or 68 * {@link android.media.AudioFormat.ENCODING_PCM_FLOAT}. 71 void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelCount);
|
PlaybackSynthesisCallback.java | 19 import android.media.AudioFormat; 125 public int start(int sampleRateInHz, int audioFormat, int channelCount) { 126 if (DBG) Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat + "," + channelCount 128 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT && 129 audioFormat != AudioFormat.ENCODING_PCM_16BIT && 130 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) { 131 Log.w(TAG, "Audio format encoding " + audioFormat + " not supported. Please use one " [all...] |
SynthesisCallback.java | 20 import android.media.AudioFormat; 45 @IntDef({AudioFormat.ENCODING_PCM_8BIT, AudioFormat.ENCODING_PCM_16BIT, 46 AudioFormat.ENCODING_PCM_FLOAT}) 65 * @param audioFormat Audio format of the generated audio. Must be one of 66 * {@link AudioFormat#ENCODING_PCM_8BIT} or 67 * {@link AudioFormat#ENCODING_PCM_16BIT}. Can also be 68 * {@link AudioFormat#ENCODING_PCM_FLOAT} when targetting Android N and 74 public int start(int sampleRateInHz, @SupportedAudioFormat int audioFormat,
|
UtteranceProgressListener.java | 5 import android.media.AudioFormat; 94 * @param audioFormat Audio format of the generated audio. Should be one of 95 * {@link AudioFormat#ENCODING_PCM_8BIT}, {@link AudioFormat#ENCODING_PCM_16BIT} or 96 * {@link AudioFormat#ENCODING_PCM_FLOAT}. 99 public void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelCount) {
|
SynthesisPlaybackQueueItem.java | 67 int audioFormat, int channelCount, UtteranceProgressDispatcher dispatcher, 77 mAudioTrack = new BlockingAudioTrack(audioParams, sampleRate, audioFormat, channelCount);
|
BlockingAudioTrack.java | 5 import android.media.AudioFormat; 79 int audioFormat, int channelCount) { 82 mAudioFormat = audioFormat; 85 mBytesPerFrame = AudioFormat.getBytesPerSample(mAudioFormat) * mChannelCount; 176 return AudioFormat.CHANNEL_OUT_MONO; 178 return AudioFormat.CHANNEL_OUT_STEREO; 217 AudioFormat audioFormat = (new AudioFormat.Builder()) 222 audioFormat, bufferSizeInBytes, AudioTrack.MODE_STREAM [all...] |
/frameworks/base/media/java/android/media/ |
AudioFormat.java | 30 * The {@link AudioFormat} class is used to access a number of audio format and 34 * parameter is one of the <code>AudioFormat.ENCODING_*</code> constants. 35 * The <code>AudioFormat</code> constants are also used in {@link MediaFormat} to specify 37 * <p>The {@link AudioFormat.Builder} class can be used to create instances of 38 * the <code>AudioFormat</code> format class. 40 * {@link AudioFormat.Builder} for documentation on the mechanics of the configuration and building 41 * of such instances. Here we describe the main concepts that the <code>AudioFormat</code> class 48 * <p>Closely associated with the <code>AudioFormat</code> is the notion of an 53 * <p>Expressed in Hz, the sample rate in an <code>AudioFormat</code> instance expresses the number 215 public final class AudioFormat implements Parcelable [all...] |
/frameworks/base/core/jni/ |
android_media_AudioFormat.h | 22 // keep these values in sync with AudioFormat.java 45 static inline audio_format_t audioFormatToNative(int audioFormat) 47 switch (audioFormat) {
|
/frameworks/av/media/libstagefright/ |
AudioPlayer.cpp | 140 audio_format_t audioFormat = AUDIO_FORMAT_PCM_16_BIT; 143 sAudioFormatToPcmEncoding.map(pcmEncoding, &audioFormat); 147 if (mapMimeToAudioFormat(audioFormat, mime) != OK) { 149 audioFormat = AUDIO_FORMAT_INVALID; 151 ALOGV("Mime type \"%s\" mapped to audio_format 0x%x", mime, audioFormat); 155 if ((audioFormat == AUDIO_FORMAT_AAC) && format->findInt32(kKeyAACAOT, &aacaot)) { 157 mapAACProfileToAudioFormat(audioFormat,(OMX_AUDIO_AACPROFILETYPE) aacaot); 184 offloadInfo.format = audioFormat; 192 mSampleRate, numChannels, channelMask, audioFormat,
|
/cts/tests/tests/media/src/android/media/cts/ |
NonBlockingAudioTrack.java | 18 import android.media.AudioFormat; 53 channelConfig = AudioFormat.CHANNEL_OUT_MONO; 56 channelConfig = AudioFormat.CHANNEL_OUT_STEREO; 59 channelConfig = AudioFormat.CHANNEL_OUT_5POINT1; 69 AudioFormat.ENCODING_PCM_16BIT); 78 AudioFormat.ENCODING_PCM_16BIT, 88 AudioFormat audioFormat = (new AudioFormat.Builder()) 90 .setEncoding(AudioFormat.ENCODING_PCM_16BIT [all...] |
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
TextToSpeechWrapper.java | 232 public void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelCount) { 235 Assert.assertTrue(audioFormat == android.media.AudioFormat.ENCODING_PCM_8BIT 236 || audioFormat == android.media.AudioFormat.ENCODING_PCM_16BIT 237 || audioFormat == android.media.AudioFormat.ENCODING_PCM_FLOAT);
|
/development/ndk/platforms/android-13/include/android/ |
tts.h | 121 android_tts_audio_format_t audioFormat,
|
/external/svox/pico/compat/jni/ |
tts.h | 122 android_tts_audio_format_t audioFormat,
|
/prebuilts/ndk/current/platforms/android-13/arch-arm/usr/include/android/ |
tts.h | 121 android_tts_audio_format_t audioFormat,
|
/prebuilts/ndk/current/platforms/android-13/arch-mips/usr/include/android/ |
tts.h | 121 android_tts_audio_format_t audioFormat,
|
/prebuilts/ndk/current/platforms/android-13/arch-x86/usr/include/android/ |
tts.h | 121 android_tts_audio_format_t audioFormat,
|
/prebuilts/ndk/current/platforms/android-14/arch-arm/usr/include/android/ |
tts.h | 121 android_tts_audio_format_t audioFormat,
|
/prebuilts/ndk/current/platforms/android-14/arch-mips/usr/include/android/ |
tts.h | 121 android_tts_audio_format_t audioFormat,
|
/prebuilts/ndk/current/platforms/android-14/arch-x86/usr/include/android/ |
tts.h | 121 android_tts_audio_format_t audioFormat,
|
/prebuilts/ndk/current/platforms/android-15/arch-arm/usr/include/android/ |
tts.h | 121 android_tts_audio_format_t audioFormat,
|
/prebuilts/ndk/current/platforms/android-15/arch-mips/usr/include/android/ |
tts.h | 121 android_tts_audio_format_t audioFormat,
|
/prebuilts/ndk/current/platforms/android-15/arch-x86/usr/include/android/ |
tts.h | 121 android_tts_audio_format_t audioFormat,
|
/prebuilts/ndk/current/platforms/android-16/arch-arm/usr/include/android/ |
tts.h | 121 android_tts_audio_format_t audioFormat,
|