Comment 7 for bug 597859

Revision history for this message
In , Daniel Ellis (danellisuk) wrote :

I suspect allowing NULL as a parameter to pa_context_new was introduced in a newer version at some point.

So what we need to find out in order to handle old and new versions of PulseAudio is:-

1. Can we determine the version of PulseAudio at runtime?

2. Which version of PulseAudio introduced the ability to pass NULL as the application name?

From the looks of SDL_pulseaudio.c it is already checking the PulseAudio version using:

  #if (PA_API_VERSION < 12)

The doxygen for PulseAudio does not help much:-

http://0pointer.de/lennart/projects/pulseaudio/doxygen/context_8h.html#a2784c754947a97f02c78b73d7b1c2d5f

Does anyone know? Or do we have to go through the PulseAudio source history?