$OpenBSD: patch-lib-src_portmixer_src_px_mixer_c,v 1.2 2007/12/08 11:08:38 ajacoutot Exp $
--- lib-src/portmixer/src/px_mixer.c.orig	Tue Nov 13 23:02:44 2007
+++ lib-src/portmixer/src/px_mixer.c	Sat Nov 24 12:19:08 2007
@@ -35,7 +35,7 @@
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  *
  */
-#include "portaudio.h"
+#include <portaudio.h>
 #include "portmixer.h"
 #include "px_mixer.h"
 
@@ -124,6 +124,9 @@ PxMixer *Px_OpenMixer(PaStream *pa_stream, int i)
       return NULL;
    }
 
+
+#ifdef PX_USE_PA_V18
+
    switch (Pa_GetStreamHostApiType(pa_stream))
    {
 #if defined(PX_USE_WIN_MME)
@@ -156,6 +159,22 @@ PxMixer *Px_OpenMixer(PaStream *pa_stream, int i)
       break;
 #endif
    }
+
+#else  /* PX_USE_PA_V18 */
+
+#if defined(PX_USE_UNIX_OSS)
+         good = OpenMixer_Unix_OSS(Px, i);
+#elif defined(PX_USE_WIN_MME)
+         good = OpenMixer_Win_MME(Px, i);
+#elif defined(PX_USE_WIN_DSOUND)
+         good = OpenMixer_Win_DirectSound(Px, i);
+#elif defined(PX_USE_MAC_COREAUDIO)
+         good = OpenMixer_Mac_CoreAudio(Px, i);
+#elif defined(PX_USE_LINUX_ALSA)
+         good = OpenMixer_Linux_ALSA(Px, i);
+#endif
+
+#endif  /* PX_USE_PA_V18 */
 
    if (!good) {
       free(Px);
