changeset 3831:7df0d3efe682 SDL-ryan-multiple-audio-device

Forgot to add NTO_Init()...
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 07 Oct 2006 19:59:57 +0000
parents 29e83f221c62
children ca74a71063ac
files src/audio/nto/SDL_nto_audio.c
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audio/nto/SDL_nto_audio.c	Sat Oct 07 19:56:47 2006 +0000
+++ b/src/audio/nto/SDL_nto_audio.c	Sat Oct 07 19:59:57 2006 +0000
@@ -448,6 +448,22 @@
     return 1;
 }
 
+
+static int
+NTO_Init(SDL_AudioDriverImpl *impl)
+{
+    /* Set the function pointers */
+    impl->OpenDevice = NTO_OpenDevice;
+    impl->ThreadInit = NTO_ThreadInit;
+    impl->WaitDevice = NTO_WaitDevice;
+    impl->PlayDevice = NTO_PlayDevice;
+    impl->GetDeviceBuf = NTO_GetDeviceBuf;
+    impl->CloseDevice = NTO_CloseDevice;
+    impl->OnlyHasDefaultOutputDevice = 1;  /* !!! FIXME: add device enum! */
+
+    return 1;
+}
+
 AudioBootStrap QNXNTOAUDIO_bootstrap = {
     DRIVER_NAME, "QNX6 QSA-NTO Audio",
     NTO_AudioAvailable, NTO_Init, 0