# HG changeset patch # User Ryan C. Gordon # Date 1160251197 0 # Node ID 7df0d3efe6822b87f9fa08bcdc876e0ebb9e457c # Parent 29e83f221c623100946ef49d75ab635710695dd7 Forgot to add NTO_Init()... diff -r 29e83f221c62 -r 7df0d3efe682 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