VirtualBox

Changeset 89099 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 17, 2021 2:15:33 PM (4 years ago)
Author:
vboxsync
Message:

DrvHostAudioAlsa: A better attempt at detecting when we need to prototype missing symbols. bugref:9890 bugref:10008

File:
1 edited

Legend:

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

    r88966 r89099  
    2323
    2424#include <iprt/cdefs.h>
     25#include <alsa/version.h>
    2526
    2627RT_C_DECLS_BEGIN
    2728extern int audioLoadAlsaLib(void);
    2829
    29 #ifndef SND_PCM_NO_SOFTVOL  /* probably not a good indicator ... */
     30#if (((SND_LIB_MAJOR) << 16) | ((SND_LIB_MAJOR) << 8) | (SND_LIB_SUBMINOR)) >= 0x10000 /* was added in 1.0.0 */
    3031extern int  snd_pcm_avail_delay(snd_pcm_t *, snd_pcm_sframes_t *, snd_pcm_sframes_t *);
    3132#endif
    3233
    33 #ifndef SND_CTL_TLVT_CHMAP_FIXED /* probably not a good indicator ... */
     34#if (((SND_LIB_MAJOR) << 16) | ((SND_LIB_MAJOR) << 8) | (SND_LIB_SUBMINOR)) >= 0x1000e /* was added in 1.0.14a */
    3435extern int  snd_device_name_hint(int, const char *, void ***);
    3536extern int  snd_device_name_free_hint(void **);
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