aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-09-16 00:24:44 -0700
committerChris Robinson <[email protected]>2009-09-16 00:24:44 -0700
commit94e3fca7022c5c7f8147200ffdb3cda5ded62488 (patch)
treed845e03d001dba7d48bfcd6035030ff5941a97e7 /Alc/alsa.c
parentffff10455435908e7975110c685cca78cebe5769 (diff)
Remove unnecessary parameters, and rename methods
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index ec80973a..e96e185f 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -408,7 +408,7 @@ static void alsa_close_playback(ALCdevice *device)
device->ExtraData = NULL;
}
-static ALCboolean alsa_start_context(ALCdevice *device, ALCcontext *context)
+static ALCboolean alsa_reset_playback(ALCdevice *device)
{
alsa_data *data = (alsa_data*)device->ExtraData;
snd_pcm_uframes_t bufferSizeInFrames;
@@ -420,7 +420,6 @@ static ALCboolean alsa_start_context(ALCdevice *device, ALCcontext *context)
int allowmmap;
char *err;
int i;
- (void)context;
switch(aluBytesFromFormat(device->Format))
@@ -544,10 +543,9 @@ static ALCboolean alsa_start_context(ALCdevice *device, ALCcontext *context)
return ALC_TRUE;
}
-static void alsa_stop_context(ALCdevice *device, ALCcontext *context)
+static void alsa_stop_playback(ALCdevice *device)
{
alsa_data *data = (alsa_data*)device->ExtraData;
- (void)context;
if(!data->thread)
return;
@@ -763,8 +761,8 @@ static ALCuint alsa_available_samples(ALCdevice *pDevice)
BackendFuncs alsa_funcs = {
alsa_open_playback,
alsa_close_playback,
- alsa_start_context,
- alsa_stop_context,
+ alsa_reset_playback,
+ alsa_stop_playback,
alsa_open_capture,
alsa_close_capture,
alsa_start_capture,