Use routed devices throughout the audio framework
After you open an audio stream, you can call getRoutedDevice() to get which output device is actually used. However, if you play an ALARM with a headset attached, audio comes out of both the speaker and the headset. This is not properly reflected with our current APIs. Throughout the audio framework, we should use DeviceIdVector instead of a single device when getRoutedDevice(s) are called. This change touches many files because onAudioDeviceUpdate() has many callers. BYPASS_LARGE_CHANGE_WARNING Bug: 367816690 Test: atest AAudioTests Test: atest audiorecord_tests Test: atest audiosystem_tests Test: atest audiotrack_tests Test: adb shell /data/fuzz/arm64/libaaudio_fuzzer/libaaudio_fuzzer Test: adb shell /data/fuzz/arm64/mediaplayer_fuzzer/mediaplayer_fuzzer Test: adb shell /data/fuzz/arm64/mediarecorder_fuzzer/mediarecorder_fuzzer Test: OboeTester Test Output with Alarm and USB Flag: EXEMPT refactor Change-Id: I5e32ac5d1c24229e60112ef00d82af41d8eff6e7
Loading
Please register or sign in to comment