本文整理汇总了C++中SDL_CloseAudio函数的典型用法代码示例。如果您正苦于以下问题:C++ SDL_CloseAudio函数的具体用法?C++ SDL_CloseAudio怎么用?C++ SDL_CloseAudio使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SDL_CloseAudio函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SNDDMA_Shutdown
void SNDDMA_Shutdown(void)
{
if (snd_inited)
{
SDL_CloseAudio();
snd_inited = 0;
}
}
示例2: stop
void AudioManager::deinit()
{
//stop all playback
stop();
//completely tear down SDL audio. else SDL hogs audio resources and emulators might fail to start...
SDL_CloseAudio();
SDL_QuitSubSystem(SDL_INIT_AUDIO);
}
示例3: lock
AUD_SDLDevice::~AUD_SDLDevice()
{
lock();
SDL_CloseAudio();
unlock();
destroy();
}
示例4: ExitSDLSound
void ExitSDLSound ()
{
#if 0
SDL_CloseAudio();
m_pbNow = m_pbStart = m_pbEnd = NULL;
#endif
}
示例5: sound_stop
void audio_device::sound_close()
{
sound_stop();
SDL_CloseAudio();
audio_running = false;
}
示例6: SDL_PauseAudio
CSound::~CSound()
{
// disable the sound
SDL_PauseAudio(1);
// shut down the SDL audio subsystem
SDL_CloseAudio();
}
示例7: uninit
// close audio device
static void uninit(int immed){
mp_msg(MSGT_AO,MSGL_V,"SDL: Audio Subsystem shutting down!\n");
if (!immed)
while(buf_free() < BUFFSIZE - CHUNK_SIZE)
usec_sleep(50000);
SDL_CloseAudio();
SDL_QuitSubSystem(SDL_INIT_AUDIO);
}
示例8: Java_org_puder_trs80_XTRS_setSoundMuted
void Java_org_puder_trs80_XTRS_setSoundMuted(JNIEnv* e, jclass clazz, jboolean muted) {
if (muted) {
sdl_audio_muted = 1;
SDL_CloseAudio();
}
flush_audio_queue();
sdl_audio_muted = muted;
}
示例9: SDL_CloseAudio
void wxSoundBackendSDL::CloseAudio()
{
if (m_audioOpen)
{
SDL_CloseAudio();
wxLogTrace(wxT("sound"), wxT("closed audio"));
m_audioOpen = false;
}
}
示例10: syssnd_shutdown
/*
* Shutdown
*/
void
syssnd_shutdown(void)
{
if (!isAudioActive) return;
SDL_CloseAudio();
SDL_DestroyMutex(sndlock);
isAudioActive = FALSE;
}
示例11: stopProcessing
AudioSdl::~AudioSdl()
{
stopProcessing();
SDL_CloseAudio();
SDL_Quit();
delete[] m_convertedBuf;
delete[] m_outBuf;
}
示例12: sound_shutdown
void sound_shutdown(void) {
#ifdef Z80_EMULATED
//puts("sound_shutdown");
sound_stop();
streams_sh_stop();
YM2610_sh_stop();
SDL_CloseAudio();
#endif
}
示例13: digi_audio_close
/* Shut down audio */
void digi_audio_close()
{
if (!digi_initialised) return;
digi_initialised = 0;
#ifdef __MINGW32__
SDL_Delay(500); // CloseAudio hangs if it's called too soon after opening?
#endif
SDL_CloseAudio();
}
示例14: sdl_kill
static void sdl_kill(running_machine &machine)
{
if (initialized_audio)
{
mame_printf_verbose("sdl_kill: closing audio\n");
SDL_CloseAudio();
}
}
示例15: I_ShutdownSound
void I_ShutdownSound(void)
{
int i;
I_ShutdownMusic();
Mix_HaltChannel(-1);
for (i=0 ; i<NUMSFX ; i++)
Mix_FreeChunk( S_sfx[i].chunk );
SDL_CloseAudio();
}