aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/null.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-29 15:07:13 -0700
committerChris Robinson <[email protected]>2013-10-29 15:07:13 -0700
commit9f0e49917d808b93e0c47ce4fa2cbf7050cfe65a (patch)
treef31632c945aba429146c4d0b1cb175c9619d9e5f /Alc/backends/null.c
parent779eb4b82b8c50174ae8bb464bc4938cff07d231 (diff)
Add default handlers for reset, captureSamples, and availableSamples
Diffstat (limited to 'Alc/backends/null.c')
-rw-r--r--Alc/backends/null.c20
1 files changed, 10 insertions, 10 deletions
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)
{