VirtualBox

Changeset 89342 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
May 28, 2021 10:27:05 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144691
Message:

Audio: Removed unused PDMAUDIOFMT type and associated translators. bugref:9890

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

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

    r89062 r89342  
    141141
    142142#endif /* unused */
    143 
    144 /**
    145  * Converts a given string to an audio format.
    146  *
    147  * @returns Audio format for the given string, or PDMAUDIOFMT_INVALID if not found.
    148  * @param   pszFmt              String to convert to an audio format.
    149  */
    150 PDMAUDIOFMT AudioHlpStrToAudFmt(const char *pszFmt)
    151 {
    152     AssertPtrReturn(pszFmt, PDMAUDIOFMT_INVALID);
    153 
    154     if (!RTStrICmp(pszFmt, "u8"))
    155         return PDMAUDIOFMT_U8;
    156     if (!RTStrICmp(pszFmt, "u16"))
    157         return PDMAUDIOFMT_U16;
    158     if (!RTStrICmp(pszFmt, "u32"))
    159         return PDMAUDIOFMT_U32;
    160     if (!RTStrICmp(pszFmt, "s8"))
    161         return PDMAUDIOFMT_S8;
    162     if (!RTStrICmp(pszFmt, "s16"))
    163         return PDMAUDIOFMT_S16;
    164     if (!RTStrICmp(pszFmt, "s32"))
    165         return PDMAUDIOFMT_S32;
    166 
    167     AssertMsgFailed(("Invalid audio format '%s'\n", pszFmt));
    168     return PDMAUDIOFMT_INVALID;
    169 }
    170143
    171144/**
  • trunk/src/VBox/Devices/Audio/AudioHlp.h

    r88923 r89342  
    4444 * @{ */
    4545bool    AudioHlpStreamCfgIsValid(PCPDMAUDIOSTREAMCFG pCfg);
    46 /** @}  */
    47 
    48 /** @name Audio string-ify methods.
    49  * @{ */
    50 PDMAUDIOFMT AudioHlpStrToAudFmt(const char *pszFmt);
    5146/** @}  */
    5247
Note: See TracChangeset for help on using the changeset viewer.

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