mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-17 07:30:15 +00:00
Refactor : rename audio subsystem initialization and shutdown functions
This commit is contained in:
parent
59e95a19b1
commit
8dd82642d3
@ -239,7 +239,7 @@ static void _destroy_enumerated_sound_devices(void) {
|
||||
}
|
||||
}
|
||||
|
||||
bool DSInit(void)
|
||||
bool audio_init(void)
|
||||
{
|
||||
if(audio_isAvailable)
|
||||
{
|
||||
@ -289,7 +289,7 @@ bool DSInit(void)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
void DSUninit(void)
|
||||
void audio_shutdown(void)
|
||||
{
|
||||
_destroy_enumerated_sound_devices();
|
||||
|
||||
|
@ -99,8 +99,15 @@ void SoundCore_SetErrorInc(const int nErrorInc);
|
||||
int SoundCore_GetErrorMax(void);
|
||||
void SoundCore_SetErrorMax(const int nErrorMax);
|
||||
|
||||
bool DSInit(void);
|
||||
void DSUninit(void);
|
||||
/*
|
||||
* Prepare the audio subsystem, including the backend renderer.
|
||||
*/
|
||||
bool audio_init(void);
|
||||
|
||||
/*
|
||||
* Shutdown the audio subsystem and backend renderer.
|
||||
*/
|
||||
void audio_shutdown(void);
|
||||
|
||||
extern bool audio_isAvailable;
|
||||
|
||||
|
@ -136,7 +136,7 @@ void test_common_init(bool do_cputhread) {
|
||||
}
|
||||
} else {
|
||||
#ifdef AUDIO_ENABLED
|
||||
DSInit();
|
||||
audio_init();
|
||||
speaker_init();
|
||||
MB_Initialize();
|
||||
#endif
|
||||
|
@ -189,7 +189,7 @@ void *cpu_thread(void *dummyptr) {
|
||||
assert(pthread_self() == cpu_thread_id);
|
||||
|
||||
#ifdef AUDIO_ENABLED
|
||||
DSInit();
|
||||
audio_init();
|
||||
speaker_init();
|
||||
MB_Initialize();
|
||||
#endif
|
||||
@ -410,7 +410,7 @@ void *cpu_thread(void *dummyptr) {
|
||||
#ifdef AUDIO_ENABLED
|
||||
speaker_destroy();
|
||||
MB_Destroy();
|
||||
DSUninit();
|
||||
audio_shutdown();
|
||||
#endif
|
||||
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user