/frameworks/base/core/java/android/speech/tts/ |
H A D | SynthesisCallback.java | 47 * @param audioFormat Audio format of the generated audio. Must be one of 52 public int start(int sampleRateInHz, int audioFormat, int channelCount); argument
|
H A D | FileSynthesisCallback.java | 99 public int start(int sampleRateInHz, int audioFormat, int channelCount) { argument 101 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat 115 mAudioFormat = audioFormat; 198 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, argument 201 int sampleSizeInBytes = (audioFormat == AudioFormat.ENCODING_PCM_8BIT ? 1 : 2);
|
H A D | BlockingAudioTrack.java | 77 int audioFormat, int channelCount, 81 mAudioFormat = audioFormat; 232 private static int getBytesPerFrame(int audioFormat) { argument 233 if (audioFormat == AudioFormat.ENCODING_PCM_8BIT) { 235 } else if (audioFormat == AudioFormat.ENCODING_PCM_16BIT) { 76 BlockingAudioTrack(int streamType, int sampleRate, int audioFormat, int channelCount, float volume, float pan) argument
|
H A D | PlaybackSynthesisCallback.java | 137 public int start(int sampleRateInHz, int audioFormat, int channelCount) { argument 139 Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat 155 mStreamType, sampleRateInHz, audioFormat, channelCount, mVolume, mPan,
|
H A D | SynthesisPlaybackQueueItem.java | 67 int audioFormat, int channelCount, 78 mAudioTrack = new BlockingAudioTrack(streamType, sampleRate, audioFormat, 66 SynthesisPlaybackQueueItem(int streamType, int sampleRate, int audioFormat, int channelCount, float volume, float pan, UtteranceProgressDispatcher dispatcher, Object callerIdentity, EventLogger logger) argument
|
/frameworks/base/media/java/android/media/ |
H A D | AudioRecord.java | 204 * @param audioFormat the format in which the audio data is represented. 214 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, argument 225 audioParamCheck(audioSource, sampleRateInHz, channelConfig, audioFormat); 257 int channelConfig, int audioFormat) { 306 switch (audioFormat) { 312 mAudioFormat = audioFormat; 451 * @param audioFormat the format in which the audio data is represented. 461 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { argument 481 if (audioFormat != AudioFormat.ENCODING_PCM_16BIT) { 486 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); 256 audioParamCheck(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat) argument 805 native_setup(Object audiorecord_this, int recordSource, int sampleRate, int nbChannels, int audioFormat, int buffSizeInBytes, int[] sessionId) argument 831 native_get_min_buff_size( int sampleRateInHz, int channelCount, int audioFormat) argument [all...] |
H A D | AudioTrack.java | 243 * @param audioFormat the format in which the audio data is represented. 256 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, argument 259 this(streamType, sampleRateInHz, channelConfig, audioFormat, 283 * @param audioFormat the format in which the audio data is represented. 297 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, argument 309 audioParamCheck(streamType, sampleRateInHz, channelConfig, audioFormat, mode); 357 int channelConfig, int audioFormat, int mode) { 412 switch (audioFormat) { 418 mAudioFormat = audioFormat; 658 * @param audioFormat th 356 audioParamCheck(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, int mode) argument 666 getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) argument 1231 native_setup(Object audiotrack_this, int streamType, int sampleRate, int nbChannels, int audioFormat, int buffSizeInBytes, int mode, int[] sessionId) argument 1276 native_get_min_buff_size( int sampleRateInHz, int channelConfig, int audioFormat) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_media_AudioRecord.cpp | 170 jint audioFormat, jint buffSizeInBytes, jintArray jSession) 173 //ALOGV("sampleRate=%d, audioFormat=%d, channels=%x, buffSizeInBytes=%d", 174 // sampleRateInHertz, audioFormat, channels, buffSizeInBytes); 183 if ((audioFormat != javaAudioRecordFields.PCM16) 184 && (audioFormat != javaAudioRecordFields.PCM8)) { 189 int bytesPerSample = audioFormat==javaAudioRecordFields.PCM16 ? 2 : 1; 190 audio_format_t format = audioFormat==javaAudioRecordFields.PCM16 ? 505 jint sampleRateInHertz, jint nbChannels, jint audioFormat) { 508 sampleRateInHertz, nbChannels, audioFormat); 513 (audioFormat 168 android_media_AudioRecord_setup(JNIEnv *env, jobject thiz, jobject weak_this, jint source, jint sampleRateInHertz, jint channels, jint audioFormat, jint buffSizeInBytes, jintArray jSession) argument 504 android_media_AudioRecord_get_min_buff_size(JNIEnv *env, jobject thiz, jint sampleRateInHertz, jint nbChannels, jint audioFormat) argument [all...] |
H A D | android_media_AudioTrack.cpp | 207 jint audioFormat, jint buffSizeInBytes, jint memoryMode, jintArray jSession) 209 ALOGV("sampleRate=%d, audioFormat(from Java)=%d, channel mask=%x, buffSize=%d", 210 sampleRateInHertz, audioFormat, javaChannelMask, buffSizeInBytes); 254 if ((audioFormat != javaAudioTrackFields.PCM16) && (audioFormat != javaAudioTrackFields.PCM8)) { 262 if ((audioFormat == javaAudioTrackFields.PCM8) 267 audioFormat = javaAudioTrackFields.PCM16; 273 int bytesPerSample = audioFormat == javaAudioTrackFields.PCM16 ? 2 : 1; 274 audio_format_t format = audioFormat == javaAudioTrackFields.PCM16 ? 516 jint writeToTrack(const sp<AudioTrack>& track, jint audioFormat, jbyt argument 205 android_media_AudioTrack_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, jint streamType, jint sampleRateInHertz, jint javaChannelMask, jint audioFormat, jint buffSizeInBytes, jint memoryMode, jintArray jSession) argument 804 android_media_AudioTrack_get_min_buff_size(JNIEnv *env, jobject thiz, jint sampleRateInHertz, jint nbChannels, jint audioFormat) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | test-resample.cpp | 39 audioFormat = 1; 54 uint16_t audioFormat; // 1=PCM member in struct:HeaderWav
|
/frameworks/base/media/java/android/media/videoeditor/ |
H A D | AudioTrack.java | 162 switch (mMANativeHelper.getAudioCodecType(properties.audioFormat)) { 183 mAudioType = properties.audioFormat;
|
H A D | MediaArtistNativeHelper.java | 1549 public int audioFormat; field in class:MediaArtistNativeHelper.EditSettings 1568 * allowed when the <code>audioFormat</code> field is set to 1571 * allowed when the <code>audioFormat</code> field is set to 1676 public int audioFormat; field in class:MediaArtistNativeHelper.Properties 2318 editSettings.audioFormat = AudioFormat.AAC; 2332 editSettings.audioFormat = AudioFormat.AAC; 2396 e.audioFormat = AudioFormat.AAC; 2492 e.audioFormat = AudioFormat.AAC; 3695 mPreviewEditSettings.audioFormat = mExportAudioCodec;
|
H A D | MediaVideoItem.java | 180 mAudioType = mMANativeHelper.getAudioCodecType(properties.audioFormat);
|
/frameworks/base/media/jni/mediaeditor/ |
H A D | VideoEditorClasses.h | 165 jfieldID audioFormat; member in struct:__anon1118 206 jfieldID audioFormat; member in struct:__anon1120
|
H A D | VideoEditorClasses.cpp | 489 VIDEOEDIT_JAVA_FIELD_INIT("audioFormat", "I"), 520 VIDEOEDIT_JAVA_FIELD_INIT("audioFormat", "I"), 562 VIDEOEDIT_JAVA_FIELD_INIT("audioFormat", "I" ), 1605 // Set the audioFormat field. 1606 pEnv->SetIntField(object, fieldIds.audioFormat, 1976 &converted, pEnv->GetIntField(object, fieldIds.audioFormat)); 1980 !converted, "editSettings.audioFormat is invalid");
|