From 6ceca0d175d7e555945407dbcd2f3f381ed92aee Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 7 Oct 2006 19:59:57 +0000 Subject: [PATCH] Forgot to add NTO_Init()... --- src/audio/nto/SDL_nto_audio.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/audio/nto/SDL_nto_audio.c b/src/audio/nto/SDL_nto_audio.c index c26ac8a64..40b4135db 100644 --- a/src/audio/nto/SDL_nto_audio.c +++ b/src/audio/nto/SDL_nto_audio.c @@ -448,6 +448,22 @@ NTO_OpenDevice(_THIS, const char *devname, int iscapture) 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