From 6b33bc26774566adf11473f3caea15d2dce440cf Mon Sep 17 00:00:00 2001 From: Robert Wu <85952307+robertwu1@users.noreply.github.com> Date: Wed, 16 Jun 2021 14:50:26 -0700 Subject: [PATCH] Added mDeviceId to FilterAudioStream Fixed a missing parameter in FilterAudioStream. Without this change, when getDeviceId() is called, the device id is set to 0, as it uses the default value. With this change, mDeviceId correctly uses the value from the child stream. I verified that the issue repros before the change and the fix does indeed fix the problem --- src/common/FilterAudioStream.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/FilterAudioStream.h b/src/common/FilterAudioStream.h index b1b9ff1f8..5d99162bb 100644 --- a/src/common/FilterAudioStream.h +++ b/src/common/FilterAudioStream.h @@ -57,6 +57,7 @@ class FilterAudioStream : public AudioStream, AudioStreamCallback { mPerformanceMode = mChildStream->getPerformanceMode(); mInputPreset = mChildStream->getInputPreset(); mFramesPerBurst = mChildStream->getFramesPerBurst(); + mDeviceId = mChildStream->getDeviceId(); } virtual ~FilterAudioStream() = default;