diff options
author | Chris Robinson <[email protected]> | 2013-10-28 22:03:54 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-28 22:03:54 -0700 |
commit | 3c65c946d4781cd6773c748b1e13f4c61db535e6 (patch) | |
tree | 7ed7bcf7ff780efac337eeba7fad8cab47f1e7d6 /Alc/backends/null.c | |
parent | 16d5d5760c09018a600394d3eeccfb9f3a880b9b (diff) |
Fix capture with the new backend interface
Diffstat (limited to 'Alc/backends/null.c')
-rw-r--r-- | Alc/backends/null.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/backends/null.c b/Alc/backends/null.c index 9e762190..c5b178de 100644 --- a/Alc/backends/null.c +++ b/Alc/backends/null.c @@ -206,10 +206,12 @@ void ALCnullBackendFactory_probe(ALCnullBackendFactory* UNUSED(self), enum DevPr } } -ALCbackend* ALCnullBackendFactory_createBackend(ALCnullBackendFactory* UNUSED(self), ALCdevice *device) +ALCbackend* ALCnullBackendFactory_createBackend(ALCnullBackendFactory* UNUSED(self), ALCdevice *device, ALCbackend_Type type) { ALCnullBackend *backend; + assert(type == ALCbackend_Playback); + backend = calloc(1, sizeof(*backend)); if(!backend) return NULL; SET_VTABLE2(ALCnullBackend, ALCbackend, backend); |