Changeset 91572 in vbox for trunk/src/VBox
- Timestamp:
- Oct 5, 2021 3:43:16 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp
r91571 r91572 78 78 * @param uPercentVol Volume (in percent) to set. 79 79 */ 80 int audioTestSetMasterVolume(unsigned u PercentVol)80 int audioTestSetMasterVolume(unsigned uVolPercent) 81 81 { 82 82 #ifdef VBOX_WITH_AUDIO_ALSA … … 119 119 120 120 long uVolMin, uVolMax; 121 122 121 snd_mixer_selem_get_playback_volume_range(elem, &uVolMin, &uVolMax); 123 122 ALSA_CHECK_ERR_RET(("ALSA: Failed to get playback volume range: %s\n", snd_strerror(err))); 124 123 125 long const uVol = RT_MIN(u PercentVol, 100) * uVolMax / 100;124 long const uVol = RT_MIN(uVolPercent, 100) * uVolMax / 100; 126 125 127 126 err = snd_mixer_selem_set_playback_volume(elem, SND_MIXER_SCHN_FRONT_LEFT, uVol); … … 137 136 # undef ALSA_CHECK_ERR_RET 138 137 138 #else /* !VBOX_WITH_AUDIO_ALSA */ 139 RT_NOREF(uVolPercent); 139 140 #endif /* VBOX_WITH_AUDIO_ALSA */ 140 141
Note:
See TracChangeset
for help on using the changeset viewer.