Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/oboe/tests/
DtestStreamOpen.cpp144 mBuilder.setFormat(static_cast<AudioFormat>(666)); in TEST_F()
156 mBuilder.setFormat(static_cast<AudioFormat>(666)); in TEST_F()
241 mBuilder.setFormat(AudioFormat::Unspecified); in TEST_F()
243 ASSERT_EQ(mStream->getFormat(), AudioFormat::I16); in TEST_F()
252 mBuilder.setFormat(AudioFormat::Unspecified); in TEST_F()
254 ASSERT_EQ(mStream->getFormat(), AudioFormat::Float); in TEST_F()
263 mBuilder.setFormat(AudioFormat::Float); in TEST_F()
274 mBuilder.setFormat(AudioFormat::Float); in TEST_F()
276 ASSERT_EQ(mStream->getFormat(), AudioFormat::Float); in TEST_F()
284 mBuilder.setFormat(AudioFormat::I16); in TEST_F()
[all …]
DtestUtilities.cpp33 int32_t sizeInBytes = oboe::convertFormatToSizeInBytes(AudioFormat::I16); in TEST_F()
38 int32_t sizeInBytes = oboe::convertFormatToSizeInBytes(AudioFormat::Float); in TEST_F()
DtestStreamClosedMethods.cpp97 mBuilder.setFormat(AudioFormat::I16); in TEST_F()
99 ASSERT_EQ(mStream->getFormat(), AudioFormat::I16); in TEST_F()
218 mBuilder.setFormat(AudioFormat::I16); in TEST_F()
240 mBuilder.setFormat(AudioFormat::I16); in TEST_F()
/third_party/skia/third_party/externals/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()
DAudioInputStreamOpenSLES.cpp81 if (getSdkVersion() < __ANDROID_API_M__ && mFormat == AudioFormat::Float){ in open()
89 if (mFormat == AudioFormat::Unspecified){ in open()
91 AudioFormat::I16 : AudioFormat::Float; in open()
DAudioOutputStreamOpenSLES.cpp118 if (getSdkVersion() < __ANDROID_API_L__ && mFormat == AudioFormat::Float){ in open()
126 if (mFormat == AudioFormat::Unspecified){ in open()
128 AudioFormat::I16 : AudioFormat::Float; in open()
DOpenSLESUtilities.h40 SLuint32 OpenSLES_ConvertFormatToRepresentation(AudioFormat format);
/third_party/skia/third_party/externals/oboe/include/oboe/
DAudioStreamBase.h72 AudioFormat getFormat() const { return mFormat; } in getFormat()
175 AudioFormat mFormat = AudioFormat::Unspecified;
202 case AudioFormat::Unspecified: in isValidConfig()
203 case AudioFormat::I16: in isValidConfig()
204 case AudioFormat::Float: in isValidConfig()
DUtilities.h48 int32_t convertFormatToSizeInBytes(AudioFormat format);
DDefinitions.h94 enum class AudioFormat : int32_t { // aaudio_format_t enum
/third_party/skia/third_party/externals/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()
110 case AudioFormat::Float: in configure()
114 case AudioFormat::I16: in configure()
128 case AudioFormat::Float: in configure()
131 case AudioFormat::I16: in configure()
198 case AudioFormat::Float: in configure()
201 case AudioFormat::I16: in configure()
DQuirksManager.cpp125 const bool isFloat = builder.getFormat() == AudioFormat::Float; in isConversionNeeded()
168 childBuilder.setFormat(AudioFormat::I16); // needed for FAST track in isConversionNeeded()
DAudioStreamBuilder.cpp84 && (getFormat() == (AudioFormat)oboe::Unspecified || getFormat() == other.getFormat()) in isCompatible()
125 if (getFormat() == oboe::AudioFormat::Unspecified) { in openStream()
/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/
DDuplexEngine.cpp27 if (inStream->getFormat() == oboe::AudioFormat::Float) { in beginStreams()
30 } else if (inStream->getFormat() == oboe::AudioFormat::I16) { in beginStreams()
61 ->setFormat(oboe::AudioFormat::Float) // For now in openInStream()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/
DInputStreamCallbackAnalyzer.cpp28 if (audioStream->getFormat() == oboe::AudioFormat::I16) { in onAudioReady()
41 } else if (audioStream->getFormat() == oboe::AudioFormat::Float) { in onAudioReady()
DNativeAudioContext.cpp186 ->setFormat((oboe::AudioFormat) format) in open()
366 if (outputStream->getFormat() == oboe::AudioFormat::I16) { in configureStreamGateway()
368 } else if (outputStream->getFormat() == oboe::AudioFormat::Float) { in configureStreamGateway()
474 ->setFormat(oboe::AudioFormat::Float) in startPlayback()
/third_party/skia/third_party/externals/oboe/samples/LiveEffect/src/main/cpp/
DLiveEffectEngine.h54 oboe::AudioFormat mFormat = oboe::AudioFormat::I16;
/third_party/pulseaudio/sonic/
DMain.java9 import javax.sound.sampled.AudioFormat;
71 AudioFormat format = stream.getFormat(); in main()
/third_party/skia/third_party/externals/oboe/src/aaudio/
DAAudioLoader.cpp272 static_assert((int32_t)AudioFormat::Invalid == AAUDIO_FORMAT_INVALID, ERRMSG);
273 static_assert((int32_t)AudioFormat::Unspecified == AAUDIO_FORMAT_UNSPECIFIED, ERRMSG);
274 static_assert((int32_t)AudioFormat::I16 == AAUDIO_FORMAT_PCM_I16, ERRMSG);
275 static_assert((int32_t)AudioFormat::Float == AAUDIO_FORMAT_PCM_FLOAT, ERRMSG);
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/
DGame.cpp120 bool is16Bit = (oboeStream->getFormat() == AudioFormat::I16); in onAudioReady()
188 if (mAudioStream->getFormat() == AudioFormat::I16){ in openStream()
/third_party/skia/third_party/externals/oboe/samples/MegaDrone/src/main/cpp/
DMegaDroneEngine.cpp56 ->setFormat(oboe::AudioFormat::Float) in createPlaybackStream()
/third_party/skia/third_party/externals/oboe/docs/
DGettingStarted.md130 builder.setFormat(oboe::AudioFormat::Float);
140 ->setFormat(oboe::AudioFormat::Float);
150 // We requested AudioFormat::Float so we assume we got it.
195 oboe::AudioFormat format = stream->getFormat();
267 ->setFormat(oboe::AudioFormat::Float)

12