VirtualBox

Changeset 64571 in vbox for trunk


Ignore:
Timestamp:
Nov 4, 2016 12:41:57 PM (8 years ago)
Author:
vboxsync
Message:

Audio/DrvAudioCommon.cpp: Also initialize cbBitrate in DrvAudioHlpStreamCfgToProps().

File:
1 edited

Legend:

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

    r63865 r64571  
    912912        pProps->cShift      = (pCfg->cChannels == 2) + cShift;
    913913        pProps->cChannels   = pCfg->cChannels;
     914        pProps->cbBitrate   = DrvAudioHlpCalcBitrate(pProps->cBits, pProps->uHz, pProps->cChannels) / 8 /* Convert to bytes */;
    914915        pProps->uAlign      = (1 << pProps->cShift) - 1;
    915916        pProps->fSwapEndian = pCfg->enmEndianness != PDMAUDIOHOSTENDIANNESS;
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