Commit ff92974
committed
fix: fix audio feature switching sequence
The order of operations when disabling mono and noise reduction features
was incorrect. Previously, the code would set properties and save
configuration before handling device switching, which could cause issues
when the default device was a virtual device. Now when disabling these
features, the code first switches back to the physical device before
applying the feature change to ensure proper device context.
The changes ensure that when turning off mono audio or noise reduction,
if the current default device is a virtual device created for these
features, the system will switch back to the physical device first.
This prevents audio routing issues and ensures the feature changes are
applied to the correct device context.
Log: Fixed audio device switching sequence when disabling mono and noise
reduction features
Influence:
1. Test enabling/disabling mono audio feature
2. Test enabling/disabling noise reduction feature
3. Verify audio device switching behavior
4. Check that audio continues working after feature toggling
5. Test configuration persistence after feature changes
fix: 修复音频功能切换顺序
修复了在禁用单声道和降噪功能时的操作顺序问题。之前代码会在处理设备切换
之前设置属性和保存配置,这可能导致当默认设备是虚拟设备时出现问题。现在
当禁用这些功能时,代码会先切换回物理设备再应用功能更改,确保正确的设备上
下文。
修改确保在关闭单声道音频或降噪功能时,如果当前默认设备是为这些功能创建的
虚拟设备,系统会先切换回物理设备。这可以防止音频路由问题,并确保功能更改
应用于正确的设备上下文。
Log: 修复禁用单声道和降噪功能时的音频设备切换顺序
Influence:
1. 测试启用/禁用单声道音频功能
2. 测试启用/禁用降噪功能
3. 验证音频设备切换行为
4. 检查功能切换后音频是否继续正常工作
5. 测试功能更改后的配置持久性
PMS: BUG-354833
Change-Id: I2669ab9d7ccd091c7f66a611c9d7932e7dcb799c1 parent 68757c2 commit ff92974
1 file changed
Lines changed: 19 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1813 | 1813 | | |
1814 | 1814 | | |
1815 | 1815 | | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
1822 | 1816 | | |
1823 | 1817 | | |
1824 | 1818 | | |
1825 | 1819 | | |
1826 | 1820 | | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
1827 | 1830 | | |
1828 | 1831 | | |
1829 | 1832 | | |
| |||
1877 | 1880 | | |
1878 | 1881 | | |
1879 | 1882 | | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
1880 | 1889 | | |
1881 | 1890 | | |
1882 | 1891 | | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
1883 | 1896 | | |
1884 | 1897 | | |
1885 | | - | |
1886 | | - | |
1887 | | - | |
1888 | | - | |
1889 | | - | |
1890 | 1898 | | |
1891 | 1899 | | |
1892 | 1900 | | |
| |||
0 commit comments