diff options
author | Andy Hung <hunga@google.com> | 2024-02-09 14:05:34 -0800 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2024-02-12 18:31:57 -0800 |
commit | e3449aec4e3b519bd7d5f9bbeb0e77be55c946b3 (patch) | |
tree | de9d16afc7ecb572f73d5bc47db75344a0ec2e7a | |
parent | 46cc662ad8669c9c726cd6a6219eeaed185937c3 (diff) | |
download | wilhelm-e3449aec4e3b519bd7d5f9bbeb0e77be55c946b3.tar.gz |
OpenSLES: Remove unused variable
Fixes clang warning
Test: compiles
Bug: 324511705
Merged-In: Idc1ee7d72779c8c402da8f39f468797ab554be1f
Change-Id: Idc1ee7d72779c8c402da8f39f468797ab554be1f
-rw-r--r-- | src/android/AudioRecorder_to_android.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/android/AudioRecorder_to_android.cpp b/src/android/AudioRecorder_to_android.cpp index d4b2964..a49893b 100644 --- a/src/android/AudioRecorder_to_android.cpp +++ b/src/android/AudioRecorder_to_android.cpp @@ -236,17 +236,12 @@ SLresult android_audioRecorder_checkSourceSink(CAudioRecorder* ar) { const SLuint32 sinkLocatorType = *(SLuint32 *)pAudioSnk->pLocator; const SLuint32 sinkFormatType = *(SLuint32 *)pAudioSnk->pFormat; - const SLuint32 *df_representation = NULL; // pointer to representation field, if it exists - // sink must be an Android simple buffer queue with PCM data format switch (sinkLocatorType) { case SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE: { switch (sinkFormatType) { case SL_ANDROID_DATAFORMAT_PCM_EX: { - const SLAndroidDataFormat_PCM_EX *df_pcm = - (SLAndroidDataFormat_PCM_EX *) pAudioSnk->pFormat; // checkDataFormat() already checked representation - df_representation = &df_pcm->representation; } // SL_ANDROID_DATAFORMAT_PCM_EX - fall through to next test. FALLTHROUGH_INTENDED; case SL_DATAFORMAT_PCM: { |