aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-21 06:32:59 -0800
committerChris Robinson <[email protected]>2010-11-21 06:32:59 -0800
commita7b4e0b5c5eefb8476836aad094035bd0a5cbcd5 (patch)
tree3a1d54115f2557e5540297625f20961b8b148e62 /Alc/alsa.c
parentbbb45e326c049aef5b4d7e86021f365d206d8bb3 (diff)
Get rid of the device timer stuff
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index bbe55a52..7dbf82e0 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -690,7 +690,6 @@ static ALCboolean alsa_reset_playback(ALCdevice *device)
psnd_pcm_sw_params_free(sp);
- device->TimeRes = (ALuint64)periodSizeInFrames * 1000000000 / rate;
device->Frequency = rate;
SetDefaultChannelOrder(device);
@@ -993,11 +992,6 @@ static void alsa_capture_samples(ALCdevice *Device, ALCvoid *Buffer, ALCuint Sam
alcSetError(Device, ALC_INVALID_VALUE);
}
-static ALuint64 alsa_get_time(ALCdevice *Device)
-{
- return Device->SamplesPlayed * 1000000000 / Device->Frequency;
-}
-
BackendFuncs alsa_funcs = {
alsa_open_playback,
@@ -1009,8 +1003,7 @@ BackendFuncs alsa_funcs = {
alsa_start_capture,
alsa_stop_capture,
alsa_capture_samples,
- alsa_available_samples,
- alsa_get_time
+ alsa_available_samples
};
void alc_alsa_init(BackendFuncs *func_list)