VirtualBox

Changeset 88052 in vbox


Ignore:
Timestamp:
Mar 9, 2021 2:14:37 PM (4 years ago)
Author:
vboxsync
Message:

Audio/PDM: doxygen. bugref:9890

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

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

    r88051 r88052  
    4848
    4949
    50 /**
    51  * Allocates an audio device.
     50/** @defgroup grp_pdm_audio_host_enum_inline    The PDM Host Audio Enumeration Helper APIs
     51 *
     52 * @ingroup grp_pdm
     53 * @{
     54 */
     55
     56
     57/**
     58 * Allocates a host audio device for an enumeration result.
    5259 *
    5360 * @returns Newly allocated audio device, or NULL on failure.
     
    5764 *                  after it in its private structure.
    5865 */
    59 DECLINLINE(PPDMAUDIOHOSTDEV) PDMAudioDeviceAlloc(size_t cb)
     66DECLINLINE(PPDMAUDIOHOSTDEV) PDMAudioHostDevAlloc(size_t cb)
    6067{
    6168    AssertReturn(cb >= sizeof(PDMAUDIOHOSTDEV), NULL);
     
    7683
    7784/**
    78  * Frees an audio device allocated by PDMAudioDeviceAlloc.
     85 * Frees a host audio device allocated by PDMAudioHostDevAlloc.
    7986 *
    8087 * @param   pDev    The device to free.  NULL is ignored.
    8188 */
    82 DECLINLINE(void) PDMAudioDeviceFree(PPDMAUDIOHOSTDEV pDev)
     89DECLINLINE(void) PDMAudioHostDevFree(PPDMAUDIOHOSTDEV pDev)
    8390{
    8491    if (pDev)
     
    94101
    95102/**
    96  * Duplicates an audio device entry.
     103 * Duplicates a host audio device enumeration entry.
    97104 *
    98105 * @returns Duplicated audio device entry on success, or NULL on failure.
     
    100107 * @param   fOnlyCoreData
    101108 */
    102 DECLINLINE(PPDMAUDIOHOSTDEV) PDMAudioDeviceDup(PPDMAUDIOHOSTDEV pDev, bool fOnlyCoreData)
     109DECLINLINE(PPDMAUDIOHOSTDEV) PDMAudioHostDevDup(PPDMAUDIOHOSTDEV pDev, bool fOnlyCoreData)
    103110{
    104111    AssertPtrReturn(pDev, NULL);
     
    109116    AssertReturn(cbToDup >= sizeof(*pDev), NULL);
    110117
    111     PPDMAUDIOHOSTDEV pDevDup = PDMAudioDeviceAlloc(cbToDup);
     118    PPDMAUDIOHOSTDEV pDevDup = PDMAudioHostDevAlloc(cbToDup);
    112119    if (pDevDup)
    113120    {
     
    154161            RTListNodeRemove(&pDev->Node);
    155162
    156             PDMAudioDeviceFree(pDev);
     163            PDMAudioHostDevFree(pDev);
    157164
    158165            pDevEnm->cDevices--;
     
    210217            || enmUsage == PDMAUDIODIR_INVALID /*all*/)
    211218        {
    212             PPDMAUDIOHOSTDEV pDstDev = PDMAudioDeviceDup(pSrcDev, fOnlyCoreData);
     219            PPDMAUDIOHOSTDEV pDstDev = PDMAudioHostDevDup(pSrcDev, fOnlyCoreData);
    213220            AssertReturn(pDstDev, VERR_NO_MEMORY);
    214221
     
    279286
    280287/** The max string length for all PDMAUDIOHOSTDEV_F_XXX.
    281  * @sa PDMAudioDeviceFlagsToString */
     288 * @sa PDMAudioHostDevFlagsToString */
    282289#define PDMAUDIOHOSTDEV_MAX_FLAGS_STRING_LEN    (7 * 8)
    283290
     
    291298 * @param   fFlags      Audio flags (PDMAUDIOHOSTDEV_F_XXX) to convert.
    292299 */
    293 DECLINLINE(const char *) PDMAudioDeviceFlagsToString(char pszDst[PDMAUDIOHOSTDEV_MAX_FLAGS_STRING_LEN], uint32_t fFlags)
     300DECLINLINE(const char *) PDMAudioHostDevFlagsToString(char pszDst[PDMAUDIOHOSTDEV_MAX_FLAGS_STRING_LEN], uint32_t fFlags)
    294301{
    295302    static const struct { const char *pszMnemonic; uint32_t cchMnemonic; uint32_t fFlag; } s_aFlags[] =
     
    343350            LogFunc(("Device '%s':\n", pDev->szName));
    344351            LogFunc(("  Usage           = %s\n",             PDMAudioDirGetName(pDev->enmUsage)));
    345             LogFunc(("  Flags           = %s\n",             PDMAudioDeviceFlagsToString(szFlags, pDev->fFlags)));
     352            LogFunc(("  Flags           = %s\n",             PDMAudioHostDevFlagsToString(szFlags, pDev->fFlags)));
    346353            LogFunc(("  Input channels  = %RU8\n",           pDev->cMaxInputChannels));
    347354            LogFunc(("  Output channels = %RU8\n",           pDev->cMaxOutputChannels));
     
    351358}
    352359
     360/** @} */
     361
    353362#endif /* !VBOX_INCLUDED_vmm_pdmaudiohostenuminline_h */
  • trunk/include/VBox/vmm/pdmaudioinline.h

    r88029 r88052  
    4848#include <iprt/string.h>
    4949
     50
     51/** @defgroup grp_pdm_audio_inline      The PDM Audio Helper APIs
     52 * @ingroup grp_pdm
     53 * @{
     54 */
    5055
    5156/* Fix later: */
     
    869874}
    870875
     876/** @} */
     877
    871878#endif /* !VBOX_INCLUDED_vmm_pdmaudioinline_h */
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