Don't apply extra AAudio volume ramps
For shared Audio streams, both the exclusive version and the shared version per client will be applying volume changes to the volume ramp.
The fix is to not apply volume changes to shared streams since the exclusive stream will do the ramp.
Bug: 209877538
Test: OboeTester MMAP exclusive/shared
Test: atest AAudioTests
Change-Id: I6172e7ace0b36f84f2a2005e30ad7667e210fe49
diff --git a/media/libaaudio/src/client/AAudioFlowGraph.h b/media/libaaudio/src/client/AAudioFlowGraph.h
index 2056b70..00b6575 100644
--- a/media/libaaudio/src/client/AAudioFlowGraph.h
+++ b/media/libaaudio/src/client/AAudioFlowGraph.h
@@ -43,6 +43,7 @@
* @param useMonoBlend
* @param audioBalance
* @param channelMask
+ * @param isExclusive
* @return
*/
aaudio_result_t configure(audio_format_t sourceFormat,
@@ -50,7 +51,8 @@
audio_format_t sinkFormat,
int32_t sinkChannelCount,
bool useMonoBlend,
- float audioBalance);
+ float audioBalance,
+ bool isExclusive);
void process(const void *source, void *destination, int32_t numFrames);