From 9f0e49917d808b93e0c47ce4fa2cbf7050cfe65a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 29 Oct 2013 15:07:13 -0700 Subject: Add default handlers for reset, captureSamples, and availableSamples --- Alc/backends/null.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Alc/backends/null.c') diff --git a/Alc/backends/null.c b/Alc/backends/null.c index 8eeb2689..6068d990 100644 --- a/Alc/backends/null.c +++ b/Alc/backends/null.c @@ -41,7 +41,17 @@ typedef struct ALCnullBackend { } ALCnullBackend; DECLARE_ALCBACKEND_VTABLE(ALCnullBackend); +static ALuint ALCnullBackend_mixerProc(ALvoid *ptr); + +static void ALCnullBackend_Construct(ALCnullBackend *self, ALCdevice *device); static DECLARE_FORWARD(ALCnullBackend, ALCbackend, void, Destruct) +static ALCenum ALCnullBackend_open(ALCnullBackend *self, const ALCchar *name); +static void ALCnullBackend_close(ALCnullBackend *self); +static ALCboolean ALCnullBackend_reset(ALCnullBackend *self); +static ALCboolean ALCnullBackend_start(ALCnullBackend *self); +static void ALCnullBackend_stop(ALCnullBackend *self); +static DECLARE_FORWARD2(ALCnullBackend, ALCbackend, ALCenum, captureSamples, void*, ALCuint) +static DECLARE_FORWARD(ALCnullBackend, ALCbackend, ALCuint, availableSamples) static DECLARE_FORWARD(ALCnullBackend, ALCbackend, ALint64, getLatency) static DECLARE_FORWARD(ALCnullBackend, ALCbackend, void, lock) static DECLARE_FORWARD(ALCnullBackend, ALCbackend, void, unlock) @@ -142,16 +152,6 @@ static void ALCnullBackend_stop(ALCnullBackend *self) self->killNow = 0; } -ALCenum ALCnullBackend_captureSamples(ALCnullBackend* UNUSED(self), void* UNUSED(buffer), ALCuint UNUSED(samples)) -{ - return ALC_INVALID_VALUE; -} - -ALCuint ALCnullBackend_availableSamples(ALCnullBackend* UNUSED(self)) -{ - return 0; -} - static void ALCnullBackend_Delete(ALCnullBackend *self) { -- cgit v1.2.3