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/oss.c | |
parent | bbb45e326c049aef5b4d7e86021f365d206d8bb3 (diff) |
Get rid of the device timer stuff
Diffstat (limited to 'Alc/oss.c')
-rw-r--r-- | Alc/oss.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -267,8 +267,6 @@ static ALCboolean oss_reset_playback(ALCdevice *device) device->Frequency = ossSpeed; device->UpdateSize = info.fragsize / frameSize; device->NumUpdates = info.fragments + 1; - device->TimeRes = (ALuint64)device->UpdateSize * 1000000000 / - device->Frequency; data->data_size = device->UpdateSize * frameSize; data->mix_data = calloc(1, data->data_size); @@ -465,11 +463,6 @@ static ALCuint oss_available_samples(ALCdevice *pDevice) return RingBufferSize(data->ring); } -static ALuint64 oss_get_time(ALCdevice *Device) -{ - return Device->SamplesPlayed * 1000000000 / Device->Frequency; -} - BackendFuncs oss_funcs = { oss_open_playback, @@ -481,8 +474,7 @@ BackendFuncs oss_funcs = { oss_start_capture, oss_stop_capture, oss_capture_samples, - oss_available_samples, - oss_get_time + oss_available_samples }; void alc_oss_init(BackendFuncs *func_list) |