Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

More 1.3 audio work...moved dsp and dma drivers over to new model. Un…

…tested!
  • Loading branch information
icculus committed Oct 4, 2006
1 parent 595854b commit 9da9dd998e99e4d903b3b2b53c656a546e147191
@@ -132,6 +132,16 @@ static SDL_AudioDevice *get_audio_device(SDL_AudioDeviceID id)
}


/* stubs for audio drivers that don't need a specific entry point... */
/* !!! FIXME: fill in more of these. */

static void SDL_DeinitializeAudio_Default(void)
{
/* no-op. */
}



/* The general mixing thread function */
int SDLCALL
SDL_RunAudio(void *devicep)
@@ -443,6 +453,10 @@ SDL_AudioInit(const char *driver_name)
current_audio.impl.UnlockDevice = SDL_UnlockDevice_Default;
}

if (!current_audio.impl.Deinitialize) {
current_audio.impl.Deinitialize = SDL_DeinitializeAudio_Default;
}

return (0);
}

@@ -47,6 +47,7 @@ typedef struct SDL_AudioDriverImpl
void (*Deinitialize) (void);
} SDL_AudioDriverImpl;


typedef struct SDL_AudioDriver
{
/* * * */

0 comments on commit 9da9dd9

Please sign in to comment.