Home
last modified time | relevance | path

Searched refs:df_pcm (Results 1 – 3 of 3) sorted by relevance

/frameworks/wilhelm/src/android/
Dandroid_sles_conversions.h29 static inline audio_format_t sles_to_android_sampleFormat(const SLDataFormat_PCM *df_pcm) { in sles_to_android_sampleFormat() argument
30 if (df_pcm->containerSize != df_pcm->bitsPerSample) { in sles_to_android_sampleFormat()
33 switch (df_pcm->formatType) { in sles_to_android_sampleFormat()
35 switch (df_pcm->containerSize) { in sles_to_android_sampleFormat()
48 switch (((SLAndroidDataFormat_PCM_EX *)df_pcm)->representation) { in sles_to_android_sampleFormat()
50 switch (df_pcm->containerSize) { in sles_to_android_sampleFormat()
57 switch (df_pcm->containerSize) { in sles_to_android_sampleFormat()
68 switch (df_pcm->containerSize) { in sles_to_android_sampleFormat()
DAudioRecorder_to_android.cpp177 const SLAndroidDataFormat_PCM_EX *df_pcm = in android_audioRecorder_checkSourceSink() local
180 df_representation = &df_pcm->representation; in android_audioRecorder_checkSourceSink()
183 const SLDataFormat_PCM *df_pcm = (const SLDataFormat_PCM *) pAudioSnk->pFormat; in android_audioRecorder_checkSourceSink() local
185 ar->mNumChannels = df_pcm->numChannels; in android_audioRecorder_checkSourceSink()
187 if (df_pcm->endianness != ar->mObject.mEngine->mEngine.mNativeEndianness) { in android_audioRecorder_checkSourceSink()
189 df_pcm->endianness); in android_audioRecorder_checkSourceSink()
193 ar->mSampleRateMilliHz = df_pcm->samplesPerSec; // Note: bad field name in SL ES in android_audioRecorder_checkSourceSink()
198 if (df_pcm->containerSize != df_pcm->bitsPerSample) { in android_audioRecorder_checkSourceSink()
201 df_pcm->containerSize, (SLuint32)df_pcm->bitsPerSample); in android_audioRecorder_checkSourceSink()
428 const SLDataFormat_PCM *df_pcm = &ar->mDataSink.mFormat.mPCM; in android_audioRecorder_realize() local
[all …]
DAudioPlayer_to_android.cpp961 const SLAndroidDataFormat_PCM_EX *df_pcm = in android_audioPlayer_checkSourceSink() local
964 df_representation = &df_pcm->representation; in android_audioPlayer_checkSourceSink()
968 const SLDataFormat_PCM *df_pcm = (const SLDataFormat_PCM *) pAudioSrc->pFormat; in android_audioPlayer_checkSourceSink() local
969 SLresult result = android_audioPlayer_validateChannelMask(df_pcm->channelMask, in android_audioPlayer_checkSourceSink()
970 df_pcm->numChannels); in android_audioPlayer_checkSourceSink()
973 (unsigned) df_pcm->numChannels); in android_audioPlayer_checkSourceSink()
985 if (df_pcm->endianness != pAudioPlayer->mObject.mEngine->mEngine.mNativeEndianness) { in android_audioPlayer_checkSourceSink()
987 df_pcm->endianness); in android_audioPlayer_checkSourceSink()
992 if (df_pcm->containerSize != df_pcm->bitsPerSample) { in android_audioPlayer_checkSourceSink()
995 df_pcm->containerSize, (SLuint32)df_pcm->bitsPerSample); in android_audioPlayer_checkSourceSink()
[all …]