Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
More 1.3 audio work...moved dsp and dma drivers over to new model. Un…
Browse files Browse the repository at this point in the history
…tested!
  • Loading branch information
icculus committed Oct 4, 2006
1 parent 595854b commit 9da9dd9
Show file tree
Hide file tree
Showing 7 changed files with 377 additions and 331 deletions.
14 changes: 14 additions & 0 deletions src/audio/SDL_audio.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
}

Expand Down
1 change: 1 addition & 0 deletions src/audio/SDL_sysaudio.h
Expand Up @@ -47,6 +47,7 @@ typedef struct SDL_AudioDriverImpl
void (*Deinitialize) (void);
} SDL_AudioDriverImpl;


typedef struct SDL_AudioDriver
{
/* * * */
Expand Down

0 comments on commit 9da9dd9

Please sign in to comment.