diff options
author | Chris Robinson <[email protected]> | 2013-10-29 11:22:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-29 11:22:18 -0700 |
commit | d4aa4e16a0b6bb53ec9bbe0a8b3f467fb9a243f7 (patch) | |
tree | 6c34a62f7675b06375cc4ef23afe01cfdc4c1f85 /Alc/backends/loopback.c | |
parent | d2b36159431789d6934f5569e54982d7c54c4e84 (diff) |
Add a macro to forward methods to a base type
Diffstat (limited to 'Alc/backends/loopback.c')
-rw-r--r-- | Alc/backends/loopback.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/Alc/backends/loopback.c b/Alc/backends/loopback.c index bb5dd503..e400fcf2 100644 --- a/Alc/backends/loopback.c +++ b/Alc/backends/loopback.c @@ -33,7 +33,10 @@ typedef struct ALCloopback { } ALCloopback; DECLARE_ALCBACKEND_VTABLE(ALCloopback); -#define ALCNULLBACKEND_INITIALIZER { { GET_VTABLE2(ALCbackend, ALCloopback) } } +static DECLARE_FORWARD(ALCloopback, ALCbackend, void, Destruct) +static DECLARE_FORWARD(ALCloopback, ALCbackend, ALint64, getLatency) +static DECLARE_FORWARD(ALCloopback, ALCbackend, void, lock) +static DECLARE_FORWARD(ALCloopback, ALCbackend, void, unlock) static void ALCloopback_Construct(ALCloopback *self, ALCdevice *device) @@ -42,10 +45,6 @@ static void ALCloopback_Construct(ALCloopback *self, ALCdevice *device) SET_VTABLE2(ALCloopback, ALCbackend, self); } -static void ALCloopback_Destruct(ALCloopback *self) -{ - ALCbackend_Destruct(STATIC_CAST(ALCbackend, self)); -} static ALCenum ALCloopback_open(ALCloopback *self, const ALCchar *name) { @@ -84,14 +83,6 @@ ALCuint ALCloopback_availableSamples(ALCloopback* UNUSED(self)) return 0; } -static ALint64 ALCloopback_getLatency(ALCloopback *self) -{ return ALCbackend_getLatency(STATIC_CAST(ALCbackend, self)); } - -static void ALCloopback_lock(ALCloopback *self) -{ ALCbackend_lock(STATIC_CAST(ALCbackend, self)); } - -static void ALCloopback_unlock(ALCloopback *self) -{ ALCbackend_unlock(STATIC_CAST(ALCbackend, self)); } static void ALCloopback_Delete(ALCloopback *self) { |