Home
last modified time | relevance | path

Searched refs:AudioFormat (Results 1 – 25 of 66) sorted by relevance

123

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DBaseAudioProcessor.java30 protected AudioFormat inputAudioFormat;
32 protected AudioFormat outputAudioFormat;
34 private AudioFormat pendingInputAudioFormat;
35 private AudioFormat pendingOutputAudioFormat;
43 pendingInputAudioFormat = AudioFormat.NOT_SET; in BaseAudioProcessor()
44 pendingOutputAudioFormat = AudioFormat.NOT_SET; in BaseAudioProcessor()
45 inputAudioFormat = AudioFormat.NOT_SET; in BaseAudioProcessor()
46 outputAudioFormat = AudioFormat.NOT_SET; in BaseAudioProcessor()
50 public final AudioFormat configure(AudioFormat inputAudioFormat) in configure()
54 return isActive() ? pendingOutputAudioFormat : AudioFormat.NOT_SET; in configure()
[all …]
DSonicAudioProcessor.java59 private AudioFormat pendingInputAudioFormat;
60 private AudioFormat pendingOutputAudioFormat;
61 private AudioFormat inputAudioFormat;
62 private AudioFormat outputAudioFormat;
78 pendingInputAudioFormat = AudioFormat.NOT_SET; in SonicAudioProcessor()
79 pendingOutputAudioFormat = AudioFormat.NOT_SET; in SonicAudioProcessor()
80 inputAudioFormat = AudioFormat.NOT_SET; in SonicAudioProcessor()
81 outputAudioFormat = AudioFormat.NOT_SET; in SonicAudioProcessor()
139 public AudioFormat configure(AudioFormat inputAudioFormat) throws UnhandledAudioFormatException { in configure()
149 new AudioFormat(outputSampleRateHz, inputAudioFormat.channelCount, C.ENCODING_PCM_16BIT); in configure()
[all …]
DAudioProcessor.java34 final class AudioFormat { class
35 public static final AudioFormat NOT_SET =
36 new AudioFormat(
50 public AudioFormat(int sampleRate, int channelCount, @C.PcmEncoding int encoding) { in AudioFormat() method in AudioProcessor.AudioFormat
76 public UnhandledAudioFormatException(AudioFormat inputAudioFormat) { in UnhandledAudioFormatException()
100 AudioFormat configure(AudioFormat inputAudioFormat) throws UnhandledAudioFormatException; in configure()
DChannelMappingAudioProcessor.java45 public AudioFormat onConfigure(AudioFormat inputAudioFormat) in onConfigure()
49 return AudioFormat.NOT_SET; in onConfigure()
65 ? new AudioFormat(inputAudioFormat.sampleRate, outputChannels.length, C.ENCODING_PCM_16BIT) in onConfigure()
66 : AudioFormat.NOT_SET; in onConfigure()
DAudioCapabilities.java22 import android.media.AudioFormat;
38 new AudioCapabilities(new int[] {AudioFormat.ENCODING_PCM_16BIT}, DEFAULT_MAX_CHANNEL_COUNT);
44 AudioFormat.ENCODING_PCM_16BIT, AudioFormat.ENCODING_AC3, AudioFormat.ENCODING_E_AC3
DFloatResamplingAudioProcessor.java39 public AudioFormat onConfigure(AudioFormat inputAudioFormat) in onConfigure()
46 ? new AudioFormat( in onConfigure()
48 : AudioFormat.NOT_SET; in onConfigure()
DResamplingAudioProcessor.java38 public AudioFormat onConfigure(AudioFormat inputAudioFormat) in onConfigure()
50 ? new AudioFormat( in onConfigure()
52 : AudioFormat.NOT_SET; in onConfigure()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/audio/
DSonicAudioProcessorTest.java23 import com.google.android.exoplayer2.audio.AudioProcessor.AudioFormat;
33 private static final AudioFormat AUDIO_FORMAT_22050_HZ =
34 new AudioFormat(
36 private static final AudioFormat AUDIO_FORMAT_44100_HZ =
37 new AudioFormat(
39 private static final AudioFormat AUDIO_FORMAT_48000_HZ =
40 new AudioFormat(
54 AudioFormat outputAudioFormat = sonicAudioProcessor.configure(AUDIO_FORMAT_44100_HZ); in reconfigureWithSameSampleRate()
98 new AudioFormat( in doesNotSupportNon16BitInput()
106 new AudioFormat( in doesNotSupportNon16BitInput()
[all …]
DTeeAudioProcessorTest.java22 import com.google.android.exoplayer2.audio.AudioProcessor.AudioFormat;
36 private static final AudioFormat AUDIO_FORMAT =
37 new AudioFormat(/* sampleRate= */ 44100, /* channelCount= */ 2, C.ENCODING_PCM_16BIT);
/external/oboe/tests/
DtestStreamOpen.cpp146 mBuilder.setFormat(static_cast<AudioFormat>(666)); in TEST_F()
158 mBuilder.setFormat(static_cast<AudioFormat>(666)); in TEST_F()
243 mBuilder.setFormat(AudioFormat::Unspecified); in TEST_F()
245 ASSERT_EQ(mStream->getFormat(), AudioFormat::I16); in TEST_F()
254 mBuilder.setFormat(AudioFormat::Unspecified); in TEST_F()
256 ASSERT_EQ(mStream->getFormat(), AudioFormat::Float); in TEST_F()
265 mBuilder.setFormat(AudioFormat::Float); in TEST_F()
276 mBuilder.setFormat(AudioFormat::Float); in TEST_F()
278 ASSERT_EQ(mStream->getFormat(), AudioFormat::Float); in TEST_F()
286 mBuilder.setFormat(AudioFormat::I16); in TEST_F()
[all …]
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/
DC.java20 import android.media.AudioFormat;
198 public static final int ENCODING_INVALID = AudioFormat.ENCODING_INVALID;
200 public static final int ENCODING_PCM_8BIT = AudioFormat.ENCODING_PCM_8BIT;
202 public static final int ENCODING_PCM_16BIT = AudioFormat.ENCODING_PCM_16BIT;
210 public static final int ENCODING_PCM_FLOAT = AudioFormat.ENCODING_PCM_FLOAT;
212 public static final int ENCODING_MP3 = AudioFormat.ENCODING_MP3;
214 public static final int ENCODING_AAC_LC = AudioFormat.ENCODING_AAC_LC;
216 public static final int ENCODING_AAC_HE_V1 = AudioFormat.ENCODING_AAC_HE_V1;
218 public static final int ENCODING_AAC_HE_V2 = AudioFormat.ENCODING_AAC_HE_V2;
220 public static final int ENCODING_AAC_XHE = AudioFormat.ENCODING_AAC_XHE;
[all …]
/external/webrtc/sdk/android/src/java/org/webrtc/audio/
DWebRtcAudioUtils.java22 import android.media.AudioFormat;
157 case AudioFormat.CHANNEL_IN_STEREO: in channelMaskToString()
159 case AudioFormat.CHANNEL_IN_MONO: in channelMaskToString()
169 case AudioFormat.ENCODING_INVALID: in audioEncodingToString()
171 case AudioFormat.ENCODING_PCM_16BIT: in audioEncodingToString()
173 case AudioFormat.ENCODING_PCM_8BIT: in audioEncodingToString()
175 case AudioFormat.ENCODING_PCM_FLOAT: in audioEncodingToString()
177 case AudioFormat.ENCODING_AC3: in audioEncodingToString()
179 case AudioFormat.ENCODING_E_AC3: in audioEncodingToString()
181 case AudioFormat.ENCODING_DTS: in audioEncodingToString()
[all …]
DWebRtcAudioManager.java15 import android.media.AudioFormat;
111 (numChannels == 1 ? AudioFormat.CHANNEL_OUT_MONO : AudioFormat.CHANNEL_OUT_STEREO); in getMinOutputFrameSize()
113 sampleRateInHz, channelConfig, AudioFormat.ENCODING_PCM_16BIT) in getMinOutputFrameSize()
123 (numChannels == 1 ? AudioFormat.CHANNEL_IN_MONO : AudioFormat.CHANNEL_IN_STEREO); in getMinInputFrameSize()
125 sampleRateInHz, channelConfig, AudioFormat.ENCODING_PCM_16BIT) in getMinInputFrameSize()
DWebRtcAudioRecord.java16 import android.media.AudioFormat;
65 public static final int DEFAULT_AUDIO_FORMAT = AudioFormat.ENCODING_PCM_16BIT;
410 .setAudioFormat(new AudioFormat.Builder() in createAudioRecordOnMOrHigher()
483 return (channels == 1 ? AudioFormat.CHANNEL_IN_MONO : AudioFormat.CHANNEL_IN_STEREO); in channelCountToConfiguration()
551 case AudioFormat.ENCODING_PCM_8BIT: in getBytesPerSample()
553 case AudioFormat.ENCODING_PCM_16BIT: in getBytesPerSample()
554 case AudioFormat.ENCODING_IEC61937: in getBytesPerSample()
555 case AudioFormat.ENCODING_DEFAULT: in getBytesPerSample()
557 case AudioFormat.ENCODING_PCM_FLOAT: in getBytesPerSample()
559 case AudioFormat.ENCODING_INVALID: in getBytesPerSample()
[all …]
/external/oboe/src/opensles/
DOpenSLESUtilities.cpp80 SLuint32 OpenSLES_ConvertFormatToRepresentation(AudioFormat format) { in OpenSLES_ConvertFormatToRepresentation()
82 case AudioFormat::I16: in OpenSLES_ConvertFormatToRepresentation()
84 case AudioFormat::Float: in OpenSLES_ConvertFormatToRepresentation()
86 case AudioFormat::Invalid: in OpenSLES_ConvertFormatToRepresentation()
87 case AudioFormat::Unspecified: in OpenSLES_ConvertFormatToRepresentation()
/external/oboe/include/oboe/
DAudioStreamBase.h77 AudioFormat getFormat() const { return mFormat; } in getFormat()
208 AudioFormat mFormat = AudioFormat::Unspecified;
235 case AudioFormat::Unspecified: in isValidConfig()
236 case AudioFormat::I16: in isValidConfig()
237 case AudioFormat::Float: in isValidConfig()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DLoopbackAudioThread.java21 import android.media.AudioFormat;
60 private final int mChannelConfigIn = AudioFormat.CHANNEL_IN_MONO;
61 private final int mAudioFormat = AudioFormat.ENCODING_PCM_16BIT;
66 private final int mChannelConfigOut = AudioFormat.CHANNEL_OUT_MONO;
86 AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT); in computeDefaultSettings()
88 AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT); in computeDefaultSettings()
155 new AudioFormat.Builder().setChannelMask(AudioFormat.CHANNEL_OUT_MONO) : in run()
156 new AudioFormat.Builder().setChannelIndexMask(1 << mChannelIndex)) in run()
DRecorderRunnable.java20 import android.media.AudioFormat;
49 private int mChannelConfig = AudioFormat.CHANNEL_IN_MONO;
50 private int mAudioFormat = AudioFormat.ENCODING_PCM_16BIT;
135 new AudioFormat.Builder() in initRecord()
136 .setChannelMask(AudioFormat.CHANNEL_IN_MONO) : in initRecord()
137 new AudioFormat in initRecord()
202 new AudioFormat.Builder() in initBufferRecord()
203 .setChannelMask(AudioFormat.CHANNEL_IN_MONO) : in initBufferRecord()
204 new AudioFormat in initBufferRecord()
/external/oboe/src/common/
DUtilities.cpp54 int32_t convertFormatToSizeInBytes(AudioFormat format) { in convertFormatToSizeInBytes()
57 case AudioFormat::I16: in convertFormatToSizeInBytes()
60 case AudioFormat::Float: in convertFormatToSizeInBytes()
95 const char *convertToText<AudioFormat>(AudioFormat format) { in convertToText()
97 case AudioFormat::Invalid: return "Invalid"; in convertToText()
98 case AudioFormat::Unspecified: return "Unspecified"; in convertToText()
99 case AudioFormat::I16: return "I16"; in convertToText()
100 case AudioFormat::Float: return "Float"; in convertToText()
DDataConversionFlowGraph.cpp82 AudioFormat sourceFormat = sourceStream->getFormat(); in configure()
87 AudioFormat sinkFormat = sinkStream->getFormat(); in configure()
111 case AudioFormat::Float: in configure()
115 case AudioFormat::I16: in configure()
129 case AudioFormat::Float: in configure()
132 case AudioFormat::I16: in configure()
199 case AudioFormat::Float: in configure()
202 case AudioFormat::I16: in configure()
/external/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DAudioRecordThread.java20 import android.media.AudioFormat;
38 private static int AUDIO_FORMAT = AudioFormat.ENCODING_PCM_FLOAT;
51 ? AudioFormat.CHANNEL_IN_MONO : AudioFormat.CHANNEL_IN_STEREO; in createRecorder()
52 int audioFormat = AudioFormat.ENCODING_PCM_FLOAT; in createRecorder()
/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/
DCTest.java21 import android.media.AudioFormat;
44 assertThat(C.ENCODING_PCM_16BIT).isEqualTo(AudioFormat.ENCODING_PCM_16BIT); in encodingConstants_equalToAudioFormatConstants()
45 assertThat(C.ENCODING_MP3).isEqualTo(AudioFormat.ENCODING_MP3); in encodingConstants_equalToAudioFormatConstants()
46 assertThat(C.ENCODING_PCM_FLOAT).isEqualTo(AudioFormat.ENCODING_PCM_FLOAT); in encodingConstants_equalToAudioFormatConstants()
/external/exoplayer/tree/extensions/gvr/src/main/java/com/google/android/exoplayer2/ext/gvr/
DGvrAudioProcessor.java46 private AudioFormat pendingInputAudioFormat;
61 pendingInputAudioFormat = AudioFormat.NOT_SET; in GvrAudioProcessor()
87 public synchronized AudioFormat configure(AudioFormat inputAudioFormat) in configure()
120 return new AudioFormat(inputAudioFormat.sampleRate, OUTPUT_CHANNEL_COUNT, C.ENCODING_PCM_16BIT); in configure()
183 pendingInputAudioFormat = AudioFormat.NOT_SET; in reset()
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/
DSimpleAudioOutput.java21 import android.media.AudioFormat;
147 AudioFormat format = new AudioFormat.Builder() in createAudioTrack()
148 .setEncoding(AudioFormat.ENCODING_PCM_FLOAT) in createAudioTrack()
149 .setChannelMask(AudioFormat.CHANNEL_OUT_STEREO) in createAudioTrack()
/external/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioManager.java15 import android.media.AudioFormat;
342 (numChannels == 1 ? AudioFormat.CHANNEL_OUT_MONO : AudioFormat.CHANNEL_OUT_STEREO); in getMinOutputFrameSize()
344 sampleRateInHz, channelConfig, AudioFormat.ENCODING_PCM_16BIT) in getMinOutputFrameSize()
360 (numChannels == 1 ? AudioFormat.CHANNEL_IN_MONO : AudioFormat.CHANNEL_IN_STEREO); in getMinInputFrameSize()
362 sampleRateInHz, channelConfig, AudioFormat.ENCODING_PCM_16BIT) in getMinInputFrameSize()

123