Forgot to add NTO_Init()... SDL-ryan-multiple-audio-device
authorRyan C. Gordon <icculus@icculus.org>
Sat, 07 Oct 2006 19:59:57 +0000
branchSDL-ryan-multiple-audio-device
changeset 3831 7df0d3efe682
parent 3830 29e83f221c62
child 3832 ca74a71063ac
Forgot to add NTO_Init()...
src/audio/nto/SDL_nto_audio.c
--- 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