VirtualBox

Ignore:
Timestamp:
Mar 8, 2021 12:08:34 PM (4 years ago)
Author:
vboxsync
Message:

Audio: DrvAudioHlpBytesAlign -> DrvAudioHlpFloorBytesToFrame as it isn't doing an align operation similar to RT_ALIGN, it's rounding down rather than up. Switched parameters and tweaked the implementation slightly. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvAudio.h

    r88004 r88006  
    198198uint32_t DrvAudioHlpCalcBitrate(uint8_t cBits, uint32_t uHz, uint8_t cChannels);
    199199uint32_t DrvAudioHlpGetBitrate(PCPDMAUDIOPCMPROPS pProps);
    200 uint32_t DrvAudioHlpBytesAlign(uint32_t cbSize, PCPDMAUDIOPCMPROPS pProps);
     200uint32_t DrvAudioHlpFloorBytesToFrame(PCPDMAUDIOPCMPROPS pProps, uint32_t cb);
    201201bool     DrvAudioHlpIsBytesAligned(PCPDMAUDIOPCMPROPS pProps, uint32_t cb);
    202202uint32_t DrvAudioHlpBytesToFrames(uint32_t cbBytes, PCPDMAUDIOPCMPROPS pProps);
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