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/oss.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Alc/oss.c') diff --git a/Alc/oss.c b/Alc/oss.c index aaa2e47a..5fe67c53 100644 --- a/Alc/oss.c +++ b/Alc/oss.c @@ -47,8 +47,8 @@ #define SOUND_MIXER_WRITE MIXER_WRITE #endif -static char *oss_device; -static char *oss_device_capture; +static const ALCchar oss_device[] = "OSS Software"; +static const ALCchar oss_device_capture[] = "OSS Capture"; typedef struct { int fd; @@ -474,10 +474,10 @@ void alc_oss_init(BackendFuncs *func_list) { *func_list = oss_funcs; - oss_device = AppendDeviceList("OSS Software"); + AppendDeviceList(oss_device); AppendAllDeviceList(oss_device); - oss_device_capture = AppendCaptureDeviceList("OSS Capture"); + AppendCaptureDeviceList(oss_device_capture); } void alc_oss_deinit(void) -- cgit v1.2.3