diff options
author | Chris Robinson <[email protected]> | 2009-09-16 00:24:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-09-16 00:24:44 -0700 |
commit | 94e3fca7022c5c7f8147200ffdb3cda5ded62488 (patch) | |
tree | d845e03d001dba7d48bfcd6035030ff5941a97e7 /Alc/wave.c | |
parent | ffff10455435908e7975110c685cca78cebe5769 (diff) |
Remove unnecessary parameters, and rename methods
Diffstat (limited to 'Alc/wave.c')
-rw-r--r-- | Alc/wave.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -140,11 +140,10 @@ static void wave_close_playback(ALCdevice *device) device->ExtraData = NULL; } -static ALCboolean wave_start_context(ALCdevice *device, ALCcontext *Context) +static ALCboolean wave_reset_playback(ALCdevice *device) { wave_data *data = (wave_data*)device->ExtraData; ALuint channels, bits, i; - (void)Context; fseek(data->f, 0, SEEK_SET); clearerr(data->f); @@ -241,12 +240,11 @@ static ALCboolean wave_start_context(ALCdevice *device, ALCcontext *Context) return ALC_TRUE; } -static void wave_stop_context(ALCdevice *device, ALCcontext *Context) +static void wave_stop_playback(ALCdevice *device) { wave_data *data = (wave_data*)device->ExtraData; ALuint dataLen; long size; - (void)Context; if(!data->thread) return; @@ -320,8 +318,8 @@ static ALCuint wave_available_samples(ALCdevice *pDevice) BackendFuncs wave_funcs = { wave_open_playback, wave_close_playback, - wave_start_context, - wave_stop_context, + wave_reset_playback, + wave_stop_playback, wave_open_capture, wave_close_capture, wave_start_capture, |