VirtualBox

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


Ignore:
Timestamp:
Jan 5, 2017 11:56:35 AM (8 years ago)
Author:
vboxsync
Message:

Audio/DrvHostPulseAudio.cpp: Build fix (allow to run on systems with PulseAudio < 0.9.11).

File:
1 edited

Legend:

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

    r65144 r65147  
    158158} PULSEAUDIOENUMCBCTX, *PPULSEAUDIOENUMCBCTX;
    159159
     160#ifndef PA_CONTEXT_IS_GOOD /* To allow running on systems with PulseAudio < 0.9.11. */
     161static inline int PA_CONTEXT_IS_GOOD(pa_context_state_t x) {
     162    return
     163        x == PA_CONTEXT_CONNECTING ||
     164        x == PA_CONTEXT_AUTHORIZING ||
     165        x == PA_CONTEXT_SETTING_NAME ||
     166        x == PA_CONTEXT_READY;
     167}
     168#endif /* !PA_CONTEXT_IS_GOOD */
     169
     170#ifndef PA_STREAM_IS_GOOD /* To allow running on systems with PulseAudio < 0.9.11. */
     171static inline int PA_STREAM_IS_GOOD(pa_stream_state_t x) {
     172    return
     173        x == PA_STREAM_CREATING ||
     174        x == PA_STREAM_READY;
     175}
     176#endif /* !PA_STREAM_IS_GOOD */
    160177
    161178/*********************************************************************************************************************************
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