VirtualBox

Changeset 55412 in vbox


Ignore:
Timestamp:
Apr 23, 2015 4:01:28 PM (9 years ago)
Author:
vboxsync
Message:

SB16: There are no mute controls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r55394 r55412  
    10701070static void sb16SetMasterVolume(PSB16STATE pThis)
    10711071{
    1072     int     mute = 0; /** @todo Handle (un)muting. */
    10731072#ifdef VBOX_WITH_PDM_AUDIO_DRIVER
     1073    /* There's no mute switch, only volume controls. */
    10741074    uint8_t lvol = sb16MixRegToVol(pThis, 0x30);
    10751075    uint8_t rvol = sb16MixRegToVol(pThis, 0x31);
    1076     PDMAUDIOVOLUME vol = { RT_BOOL(mute), lvol, rvol };
     1076    PDMAUDIOVOLUME vol = { false, lvol, rvol };
    10771077    audioMixerSetMasterVolume(pThis->pMixer, &vol);
    10781078#else
     1079    int     mute = 0;
    10791080    uint8_t lvol = pThis->mixer_regs[0x30];
    10801081    uint8_t rvol = pThis->mixer_regs[0x31];
     
    10861087static void sb16SetPcmOutVolume(PSB16STATE pThis)
    10871088{
    1088     int     mute = 0; /** @todo Handle (un)muting. */
    10891089#ifdef VBOX_WITH_PDM_AUDIO_DRIVER
     1090    /* There's no mute switch, only volume controls. */
    10901091    uint8_t lvol = sb16MixRegToVol(pThis, 0x32);
    10911092    uint8_t rvol = sb16MixRegToVol(pThis, 0x33);
    1092     PDMAUDIOVOLUME vol = { RT_BOOL(mute), lvol, rvol };
     1093    PDMAUDIOVOLUME vol = { false, lvol, rvol };
    10931094    audioMixerSetSinkVolume(pThis->pSinkOutput, &vol);
    10941095#else
     1096    int     mute = 0;
    10951097    uint8_t lvol = pThis->mixer_regs[0x32];
    10961098    uint8_t rvol = pThis->mixer_regs[0x33];
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette