diff options
author | Chris Robinson <[email protected]> | 2013-10-28 13:51:55 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-28 13:51:55 -0700 |
commit | f8c95f1e90a9bf4e57dbd4e29604e36916f354e4 (patch) | |
tree | 580ee5bbd7d288403de86b190ac901e842a74736 /Alc/backends/base.h | |
parent | 8d9fb5109b55912ef2be7b8d4526eb6ec8154004 (diff) |
Add audio capture methods to ALCbackend
Diffstat (limited to 'Alc/backends/base.h')
-rw-r--r-- | Alc/backends/base.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Alc/backends/base.h b/Alc/backends/base.h index a118c82e..9ba33097 100644 --- a/Alc/backends/base.h +++ b/Alc/backends/base.h @@ -31,6 +31,9 @@ struct ALCbackendVtable { ALCboolean (*start)(ALCbackend*); void (*stop)(ALCbackend*); + ALCenum (*captureSamples)(ALCbackend*, void*, ALCuint); + ALCuint (*availableSamples)(ALCbackend*); + ALint64 (*getLatency)(ALCbackend*); void (*lock)(ALCbackend*); @@ -52,6 +55,10 @@ static ALCboolean T##_ALCbackend_start(ALCbackend *obj) \ { return T##_start(STATIC_UPCAST(T, ALCbackend, obj)); } \ static void T##_ALCbackend_stop(ALCbackend *obj) \ { T##_stop(STATIC_UPCAST(T, ALCbackend, obj)); } \ +static ALCenum T##_ALCbackend_captureSamples(ALCbackend *obj, void *a, ALCuint b) \ +{ return T##_captureSamples(STATIC_UPCAST(T, ALCbackend, obj), a, b); } \ +static ALCuint T##_ALCbackend_availableSamples(ALCbackend *obj) \ +{ return T##_availableSamples(STATIC_UPCAST(T, ALCbackend, obj)); } \ static ALint64 T##_ALCbackend_getLatency(ALCbackend *obj) \ { return T##_getLatency(STATIC_UPCAST(T, ALCbackend, obj)); } \ static void T##_ALCbackend_lock(ALCbackend *obj) \ @@ -69,6 +76,8 @@ static const struct ALCbackendVtable T##_ALCbackend_vtable = { \ T##_ALCbackend_reset, \ T##_ALCbackend_start, \ T##_ALCbackend_stop, \ + T##_ALCbackend_captureSamples, \ + T##_ALCbackend_availableSamples, \ T##_ALCbackend_getLatency, \ T##_ALCbackend_lock, \ T##_ALCbackend_unlock, \ |