Home
last modified time | relevance | path

Searched refs:audioFormat (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java102 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument
104 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat in start()
107 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT && in start()
108 audioFormat != AudioFormat.ENCODING_PCM_16BIT && in start()
109 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) { in start()
110 Log.e(TAG, "Audio format encoding " + audioFormat + " not supported. Please use one " + in start()
114 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount); in start()
132 mAudioFormat = audioFormat; in start()
203 int audioFormat = 0; in done() local
228 audioFormat = mAudioFormat; in done()
[all …]
DPlaybackSynthesisCallback.java125 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument
126 if (DBG) Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat + "," + channelCount in start()
128 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT && in start()
129 audioFormat != AudioFormat.ENCODING_PCM_16BIT && in start()
130 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) { in start()
131 Log.w(TAG, "Audio format encoding " + audioFormat + " not supported. Please use one " + in start()
135 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount); in start()
158 mAudioParams, sampleRateInHz, audioFormat, channelCount, in start()
DBlockingAudioTrack.java79 int audioFormat, int channelCount) { in BlockingAudioTrack() argument
82 mAudioFormat = audioFormat; in BlockingAudioTrack()
217 AudioFormat audioFormat = (new AudioFormat.Builder()) in createStreamingAudioTrack() local
222 audioFormat, bufferSizeInBytes, AudioTrack.MODE_STREAM, in createStreamingAudioTrack()
DITextToSpeechCallback.aidl71 … void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelCount); in onBeginSynthesis() argument
/frameworks/av/services/oboeservice/
DAAudioServiceEndpointMMAP.cpp81 audio_format_t audioFormat = getFormat(); in open() local
84 if (audioFormat == AUDIO_FORMAT_PCM_FLOAT) { in open()
86 ALOGD("%s() change format from %d to 32_BIT", __func__, audioFormat); in open()
87 audioFormat = AUDIO_FORMAT_PCM_32_BIT; in open()
90 result = openWithFormat(audioFormat); in open()
93 if (result == AAUDIO_ERROR_UNAVAILABLE && audioFormat == AUDIO_FORMAT_PCM_32_BIT) { in open()
95 audioFormat = AUDIO_FORMAT_PCM_24_BIT_PACKED; in open()
96 result = openWithFormat(audioFormat); in open()
103 if (result == AAUDIO_ERROR_UNAVAILABLE && audioFormat == AUDIO_FORMAT_PCM_24_BIT_PACKED) { in open()
105 audioFormat = AUDIO_FORMAT_PCM_16_BIT; in open()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothAudioConfig.java36 public BluetoothAudioConfig(int sampleRate, int channelConfig, int audioFormat) { in BluetoothAudioConfig() argument
39 mAudioFormat = audioFormat; in BluetoothAudioConfig()
73 int audioFormat = in.readInt();
74 return new BluetoothAudioConfig(sampleRate, channelConfig, audioFormat);
/frameworks/base/media/java/android/media/
DAudioFormat.java625 public static int getBytesPerSample(int audioFormat) in getBytesPerSample() argument
627 switch (audioFormat) { in getBytesPerSample()
641 throw new IllegalArgumentException("Bad audio format " + audioFormat); in getBytesPerSample()
646 public static boolean isValidEncoding(int audioFormat) in isValidEncoding() argument
648 switch (audioFormat) { in isValidEncoding()
683 public static boolean isPublicEncoding(int audioFormat) in isPublicEncoding() argument
685 switch (audioFormat) { in isPublicEncoding()
721 public static boolean isEncodingLinearPcm(int audioFormat) in isEncodingLinearPcm() argument
723 switch (audioFormat) { in isEncodingLinearPcm()
756 throw new IllegalArgumentException("Bad audio format " + audioFormat); in isEncodingLinearPcm()
[all …]
DAudioTrack.java639 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
642 this(streamType, sampleRateInHz, channelConfig, audioFormat, in AudioTrack()
697 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
706 .setEncoding(audioFormat) in AudioTrack()
1684 int audioFormat, int mode) { in audioParamCheck() argument
1695 if (audioFormat == AudioFormat.ENCODING_IEC61937 in audioParamCheck()
1723 if (!isMultichannelConfigSupported(channelConfig, audioFormat)) { in audioParamCheck()
1726 + " for encoding " + audioFormat); in audioParamCheck()
1738 && (!AudioFormat.isEncodingLinearFrames(audioFormat) // compressed OK in audioParamCheck()
1743 + " for encoding " + audioFormat); in audioParamCheck()
[all …]
DAudioRecord.java322 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, in AudioRecord() argument
331 .setEncoding(audioFormat) in AudioRecord()
958 private void audioParamCheck(int audioSource, int sampleRateInHz, int audioFormat) in audioParamCheck() argument
984 switch (audioFormat) { in audioParamCheck()
993 mAudioFormat = audioFormat; in audioParamCheck()
996 throw new IllegalArgumentException("Unsupported sample encoding " + audioFormat in audioParamCheck()
1223 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { in getMinBufferSize() argument
1242 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); in getMinBufferSize()
2234 int[] sampleRate, int channelMask, int channelIndexMask, int audioFormat, in native_setup() argument
2241 channelIndexMask, audioFormat, buffSizeInBytes, sessionId, in native_setup()
[all …]
DAudioPlaybackCaptureConfiguration.java131 @NonNull AudioMix createAudioMix(@NonNull AudioFormat audioFormat) { in createAudioMix() argument
133 .setFormat(audioFormat) in createAudioMix()
/frameworks/av/media/libaaudio/src/binding/
DAAudioStreamConfiguration.cpp38 static_assert(sizeof(audio_format_t) == sizeof(parcelable.audioFormat)); in AAudioStreamConfiguration()
39 setFormat(static_cast<audio_format_t>(parcelable.audioFormat)); in AAudioStreamConfiguration()
71 static_assert(sizeof(audio_format_t) == sizeof(result.audioFormat)); in parcelable()
72 result.audioFormat = static_cast<AudioFormat>(getFormat()); in parcelable()
/frameworks/base/core/java/android/service/voice/
DAbstractHotwordDetector.java65 @NonNull AudioFormat audioFormat, in startRecognition() argument
76 audioFormat, in startRecognition()
140 @Nullable AudioFormat audioFormat, in onDetected() argument
145 new AlwaysOnHotwordDetector.EventPayload(audioFormat, hotwordDetectedResult))); in onDetected()
DSoftwareHotwordDetector.java59 AudioFormat audioFormat, in SoftwareHotwordDetector() argument
66 mAudioFormat = audioFormat; in SoftwareHotwordDetector()
132 @Nullable AudioFormat audioFormat, in onDetected() argument
138 audioFormat, hotwordDetectedResult, audioStream))); in onDetected()
DIHotwordDetectionService.aidl38 in AudioFormat audioFormat, in detectFromDspSource() argument
45 in AudioFormat audioFormat, in detectFromMicrophoneSource() argument
DAlwaysOnHotwordDetector.java353 AudioFormat audioFormat, int captureSession, byte[] data) { in EventPayload() argument
354 this(triggerAvailable, captureAvailable, audioFormat, captureSession, data, null, in EventPayload()
359 AudioFormat audioFormat, int captureSession, byte[] data, in EventPayload() argument
361 this(triggerAvailable, captureAvailable, audioFormat, captureSession, data, in EventPayload()
365 EventPayload(AudioFormat audioFormat, HotwordDetectedResult hotwordDetectedResult) { in EventPayload() argument
366 this(false, false, audioFormat, -1, null, hotwordDetectedResult, null); in EventPayload()
369 EventPayload(AudioFormat audioFormat, in EventPayload() argument
372 this(false, false, audioFormat, -1, null, hotwordDetectedResult, audioStream); in EventPayload()
376 AudioFormat audioFormat, int captureSession, byte[] data, in EventPayload() argument
381 mAudioFormat = audioFormat; in EventPayload()
DHotwordDetectionService.java135 AudioFormat audioFormat,
164 AudioFormat audioFormat,
179 audioFormat,
334 @NonNull AudioFormat audioFormat, in onDetect() argument
DIMicrophoneHotwordDetectionVoiceInteractionCallback.aidl34 in AudioFormat audioFormat, in onDetected() argument
/frameworks/av/cmds/stagefright/
DAudioPlayer.cpp151 audio_format_t audioFormat = AUDIO_FORMAT_PCM_16_BIT; in start() local
154 sAudioFormatToPcmEncoding.map(pcmEncoding, &audioFormat); in start()
158 if (mapMimeToAudioFormat(audioFormat, mime) != OK) { in start()
160 audioFormat = AUDIO_FORMAT_INVALID; in start()
162 ALOGV("Mime type \"%s\" mapped to audio_format 0x%x", mime, audioFormat); in start()
166 if ((audioFormat == AUDIO_FORMAT_AAC) && format->findInt32(kKeyAACAOT, &aacaot)) { in start()
168 mapAACProfileToAudioFormat(audioFormat,(OMX_AUDIO_AACPROFILETYPE) aacaot); in start()
195 offloadInfo.format = audioFormat; in start()
203 mSampleRate, numChannels, channelMask, audioFormat, in start()
/frameworks/base/media/java/android/media/musicrecognition/
DMusicRecognitionService.java80 AudioFormat audioFormat,
84 audioFormat,
131 @NonNull AudioFormat audioFormat, in onRecognize() argument
DRecognitionRequest.java104 public Builder setAudioFormat(@NonNull AudioFormat audioFormat) { in setAudioFormat() argument
105 mAudioFormat = audioFormat; in setAudioFormat()
DIMusicRecognitionService.aidl17 in AudioFormat audioFormat, in onAudioStreamStarted() argument
/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/
DRemoteMusicRecognitionService.java90 @NonNull AudioFormat audioFormat) { in onAudioStreamStarted() argument
92 binder -> binder.onAudioStreamStarted(fd, audioFormat, mServerCallback)); in onAudioStreamStarted()
/frameworks/base/core/jni/
Dandroid_media_AudioFormat.h60 static inline audio_format_t audioFormatToNative(int audioFormat) in audioFormatToNative() argument
62 switch (audioFormat) { in audioFormatToNative()
/frameworks/av/media/libaaudio/src/core/
DAAudioStreamParameters.h63 void setFormat(audio_format_t audioFormat) { in setFormat() argument
64 mAudioFormat = audioFormat; in setFormat()
/frameworks/av/media/libaaudio/src/binding/aidl/aaudio/
DStreamParameters.aidl26 AudioFormat audioFormat; // = AUDIO_FORMAT_DEFAULT;

123