VirtualBox

Changeset 87990 in vbox for trunk/include


Ignore:
Timestamp:
Mar 7, 2021 2:29:40 PM (4 years ago)
Author:
vboxsync
Message:

Audio: Fixed broken DrvAudioHlpBytesToNano and DrvAudioHlpBytesToMicro implementation (overflow), the latter is the only one used. Also fixed silly confusion about 'const' and pointers (you want what they point to to be const, not the pointers themselves. duh) bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmaudioifs.h

    r87849 r87990  
    682682/** Pointer to audio stream properties. */
    683683typedef PDMAUDIOPCMPROPS *PPDMAUDIOPCMPROPS;
     684/** Pointer to const audio stream properties. */
     685typedef PDMAUDIOPCMPROPS const *PCPDMAUDIOPCMPROPS;
    684686
    685687/** @name Macros for use with PDMAUDIOPCMPROPS
     
    759761/** Pointer to audio stream configuration keeper. */
    760762typedef PDMAUDIOSTREAMCFG *PPDMAUDIOSTREAMCFG;
     763/** Pointer to a const audio stream configuration keeper. */
     764typedef PDMAUDIOSTREAMCFG const *PCPDMAUDIOSTREAMCFG;
    761765
    762766/** Converts (audio) frames to bytes. */
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