diff options
author | Chris Robinson <[email protected]> | 2009-08-27 01:47:41 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-08-27 01:47:41 -0700 |
commit | 45dc8048193162edbb886921cfcf2955c5232626 (patch) | |
tree | d99e7a4cb49400b5395be15c69c34d3ad59c989e /Alc/pulseaudio.c | |
parent | 81db01ebf1d6b608339b5288785f3c514dbcff27 (diff) |
Store copies of the device names in the individual backends
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r-- | Alc/pulseaudio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index dd3621c1..4bce7379 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -108,8 +108,8 @@ typedef struct { pa_context *context; } pulse_data; -static char *pulse_device; -static char *pulse_capture_device; +static const ALCchar pulse_device[] = "PulseAudio Software"; +static const ALCchar pulse_capture_device[] = "PulseAudio Capture"; // PulseAudio Event Callbacks {{{ static void stream_state_callback(pa_stream *stream, void *pdata) //{{{ @@ -205,7 +205,7 @@ static void stream_read_callback(pa_stream *stream, size_t length, void *pdata) } //}}} //}}} -static ALCboolean pulse_open(ALCdevice *device, ALCchar *device_name) //{{{ +static ALCboolean pulse_open(ALCdevice *device, const ALCchar *device_name) //{{{ { pulse_data *data = ppa_xmalloc0(sizeof(pulse_data)); @@ -696,10 +696,10 @@ LOAD_FUNC(pa_threaded_mainloop_lock); #undef LOAD_FUNC - pulse_device = AppendDeviceList("PulseAudio Software"); + AppendDeviceList(pulse_device); AppendAllDeviceList(pulse_device); - pulse_capture_device = AppendCaptureDeviceList("PulseAudio Capture"); + AppendCaptureDeviceList(pulse_capture_device); } //}}} void alc_pulse_deinit(void) //{{{ |