aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-08-27 01:47:41 -0700
committerChris Robinson <[email protected]>2009-08-27 01:47:41 -0700
commit45dc8048193162edbb886921cfcf2955c5232626 (patch)
treed99e7a4cb49400b5395be15c69c34d3ad59c989e /Alc/oss.c
parent81db01ebf1d6b608339b5288785f3c514dbcff27 (diff)
Store copies of the device names in the individual backends
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c8
1 files changed, 4 insertions, 4 deletions
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)