From a234fc11e580ac851bdfabc8711546209c1c11a1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 8 Sep 2014 06:59:58 -0700 Subject: Remove the GetLatency method from the old BackendFuncs --- Alc/backends/qsa.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'Alc/backends/qsa.c') diff --git a/Alc/backends/qsa.c b/Alc/backends/qsa.c index e591b10a..aca2d73c 100644 --- a/Alc/backends/qsa.c +++ b/Alc/backends/qsa.c @@ -1073,16 +1073,7 @@ static ALCenum qsa_capture_samples(ALCdevice *device, ALCvoid *buffer, ALCuint s return ALC_NO_ERROR; } -static ALint64 qsa_get_latency(ALCdevice* device) -{ - ALint frame_size=FrameSizeFromDevFmt(device->FmtChans, device->FmtType); - - return (ALint64)(device->UpdateSize*device->NumUpdates/frame_size)* - 1000000000/device->Frequency; -} - -BackendFuncs qsa_funcs= -{ +static const BackendFuncs qsa_funcs= { qsa_open_playback, qsa_close_playback, qsa_reset_playback, @@ -1093,8 +1084,7 @@ BackendFuncs qsa_funcs= qsa_start_capture, qsa_stop_capture, qsa_capture_samples, - qsa_available_samples, - qsa_get_latency, + qsa_available_samples }; ALCboolean alc_qsa_init(BackendFuncs* func_list) -- cgit v1.2.3