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 38317df0d3efe682
parent 3830 29e83f221c62
child 3832 ca74a71063ac
Forgot to add NTO_Init()...
src/audio/nto/SDL_nto_audio.c
     1.1 --- a/src/audio/nto/SDL_nto_audio.c	Sat Oct 07 19:56:47 2006 +0000
     1.2 +++ b/src/audio/nto/SDL_nto_audio.c	Sat Oct 07 19:59:57 2006 +0000
     1.3 @@ -448,6 +448,22 @@
     1.4      return 1;
     1.5  }
     1.6  
     1.7 +
     1.8 +static int
     1.9 +NTO_Init(SDL_AudioDriverImpl *impl)
    1.10 +{
    1.11 +    /* Set the function pointers */
    1.12 +    impl->OpenDevice = NTO_OpenDevice;
    1.13 +    impl->ThreadInit = NTO_ThreadInit;
    1.14 +    impl->WaitDevice = NTO_WaitDevice;
    1.15 +    impl->PlayDevice = NTO_PlayDevice;
    1.16 +    impl->GetDeviceBuf = NTO_GetDeviceBuf;
    1.17 +    impl->CloseDevice = NTO_CloseDevice;
    1.18 +    impl->OnlyHasDefaultOutputDevice = 1;  /* !!! FIXME: add device enum! */
    1.19 +
    1.20 +    return 1;
    1.21 +}
    1.22 +
    1.23  AudioBootStrap QNXNTOAUDIO_bootstrap = {
    1.24      DRIVER_NAME, "QNX6 QSA-NTO Audio",
    1.25      NTO_AudioAvailable, NTO_Init, 0