diff options
author | Chris Robinson <[email protected]> | 2010-11-21 06:32:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-21 06:32:59 -0800 |
commit | a7b4e0b5c5eefb8476836aad094035bd0a5cbcd5 (patch) | |
tree | 3a1d54115f2557e5540297625f20961b8b148e62 /Alc/portaudio.c | |
parent | bbb45e326c049aef5b4d7e86021f365d206d8bb3 (diff) |
Get rid of the device timer stuff
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r-- | Alc/portaudio.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c index 062c403a..2b8e0fa4 100644 --- a/Alc/portaudio.c +++ b/Alc/portaudio.c @@ -250,8 +250,6 @@ static ALCboolean pa_reset_playback(ALCdevice *device) streamInfo = pPa_GetStreamInfo(data->stream); device->Frequency = streamInfo->sampleRate; device->UpdateSize = data->update_size; - device->TimeRes = (ALuint64)device->UpdateSize * 1000000000 / - device->Frequency; err = pPa_StartStream(data->stream); if(err != paNoError) @@ -394,11 +392,6 @@ static ALCuint pa_available_samples(ALCdevice *device) return RingBufferSize(data->ring); } -static ALuint64 pa_get_time(ALCdevice *Device) -{ - return Device->SamplesPlayed * 1000000000 / Device->Frequency; -} - static const BackendFuncs pa_funcs = { pa_open_playback, @@ -410,8 +403,7 @@ static const BackendFuncs pa_funcs = { pa_start_capture, pa_stop_capture, pa_capture_samples, - pa_available_samples, - pa_get_time + pa_available_samples }; void alc_pa_init(BackendFuncs *func_list) |