Changeset 55412 in vbox
- Timestamp:
- Apr 23, 2015 4:01:28 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r55394 r55412 1070 1070 static void sb16SetMasterVolume(PSB16STATE pThis) 1071 1071 { 1072 int mute = 0; /** @todo Handle (un)muting. */1073 1072 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 1073 /* There's no mute switch, only volume controls. */ 1074 1074 uint8_t lvol = sb16MixRegToVol(pThis, 0x30); 1075 1075 uint8_t rvol = sb16MixRegToVol(pThis, 0x31); 1076 PDMAUDIOVOLUME vol = { RT_BOOL(mute), lvol, rvol };1076 PDMAUDIOVOLUME vol = { false, lvol, rvol }; 1077 1077 audioMixerSetMasterVolume(pThis->pMixer, &vol); 1078 1078 #else 1079 int mute = 0; 1079 1080 uint8_t lvol = pThis->mixer_regs[0x30]; 1080 1081 uint8_t rvol = pThis->mixer_regs[0x31]; … … 1086 1087 static void sb16SetPcmOutVolume(PSB16STATE pThis) 1087 1088 { 1088 int mute = 0; /** @todo Handle (un)muting. */1089 1089 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 1090 /* There's no mute switch, only volume controls. */ 1090 1091 uint8_t lvol = sb16MixRegToVol(pThis, 0x32); 1091 1092 uint8_t rvol = sb16MixRegToVol(pThis, 0x33); 1092 PDMAUDIOVOLUME vol = { RT_BOOL(mute), lvol, rvol };1093 PDMAUDIOVOLUME vol = { false, lvol, rvol }; 1093 1094 audioMixerSetSinkVolume(pThis->pSinkOutput, &vol); 1094 1095 #else 1096 int mute = 0; 1095 1097 uint8_t lvol = pThis->mixer_regs[0x32]; 1096 1098 uint8_t rvol = pThis->mixer_regs[0x33];
Note:
See TracChangeset
for help on using the changeset viewer.

