From 45dc8048193162edbb886921cfcf2955c5232626 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 27 Aug 2009 01:47:41 -0700 Subject: Store copies of the device names in the individual backends --- Alc/portaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/portaudio.c') diff --git a/Alc/portaudio.c b/Alc/portaudio.c index 01e82e73..6d1b6837 100644 --- a/Alc/portaudio.c +++ b/Alc/portaudio.c @@ -44,7 +44,7 @@ MAKE_FUNC(Pa_GetDefaultOutputDevice); #undef MAKE_FUNC -static char *pa_device; +static const ALCchar pa_device[] = "PortAudio Software"; typedef struct { PaStream *stream; @@ -248,7 +248,7 @@ void alc_pa_init(BackendFuncs *func_list) return; } - pa_device = AppendDeviceList("PortAudio Software"); + AppendDeviceList(pa_device); AppendAllDeviceList(pa_device); } -- cgit v1.2.3