当前位置: 首页>>代码示例>>C++>>正文


C++ SDL_CloseAudio函数代码示例

本文整理汇总了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;
	}
}
开发者ID:eriytt,项目名称:commandergenius,代码行数:8,代码来源:snd_sdl.c

示例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);
}
开发者ID:Herdinger,项目名称:EmulationStation,代码行数:8,代码来源:AudioManager.cpp

示例3: lock

AUD_SDLDevice::~AUD_SDLDevice()
{
	lock();
	SDL_CloseAudio();
	unlock();

	destroy();
}
开发者ID:Aligorith,项目名称:blender,代码行数:8,代码来源:AUD_SDLDevice.cpp

示例4: ExitSDLSound

void ExitSDLSound ()
{
#if 0
    SDL_CloseAudio();

    m_pbNow = m_pbStart = m_pbEnd = NULL;
#endif
}
开发者ID:libretro,项目名称:libretro-simcoupe,代码行数:8,代码来源:Audio.cpp

示例5: sound_stop

void audio_device::sound_close()
{
    sound_stop();

    SDL_CloseAudio();
    audio_running = false;

}
开发者ID:Metras,项目名称:wiiradio,代码行数:8,代码来源:sound_sdl.cpp

示例6: SDL_PauseAudio

CSound::~CSound()
{
  // disable the sound
  SDL_PauseAudio(1);
  
  // shut down the SDL audio subsystem
  SDL_CloseAudio();
}
开发者ID:richard42,项目名称:invasion3d,代码行数:8,代码来源:Sound.cpp

示例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);
}
开发者ID:cryptix,项目名称:Gruppe42,代码行数:9,代码来源:sdl_audio2.c

示例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;
}
开发者ID:apuder,项目名称:TRS-80,代码行数:8,代码来源:native.c

示例9: SDL_CloseAudio

void wxSoundBackendSDL::CloseAudio()
{
    if (m_audioOpen)
    {
        SDL_CloseAudio();
        wxLogTrace(wxT("sound"), wxT("closed audio"));
        m_audioOpen = false;
    }
}
开发者ID:EEmmanuel7,项目名称:wxWidgets,代码行数:9,代码来源:sound_sdl.cpp

示例10: syssnd_shutdown

/*
 * Shutdown
 */
void
syssnd_shutdown(void)
{
    if (!isAudioActive) return;

    SDL_CloseAudio();
    SDL_DestroyMutex(sndlock);
    isAudioActive = FALSE;
}
开发者ID:usineur,项目名称:xrick,代码行数:12,代码来源:syssnd.c

示例11: stopProcessing

AudioSdl::~AudioSdl()
{
	stopProcessing();

	SDL_CloseAudio();
	SDL_Quit();
	delete[] m_convertedBuf;
	delete[] m_outBuf;
}
开发者ID:GNUMariano,项目名称:lmms,代码行数:9,代码来源:AudioSdl.cpp

示例12: sound_shutdown

void sound_shutdown(void) {
#ifdef Z80_EMULATED
//puts("sound_shutdown");
    sound_stop();
    streams_sh_stop();
    YM2610_sh_stop();
    SDL_CloseAudio();
#endif
}
开发者ID:tredpath,项目名称:Neo4All-pb,代码行数:9,代码来源:sound.cpp

示例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();
}
开发者ID:dxx-rebirth,项目名称:dxx-rebirth,代码行数:10,代码来源:digi_audio.cpp

示例14: sdl_kill

static void sdl_kill(running_machine &machine)
{
	if (initialized_audio)
	{
		mame_printf_verbose("sdl_kill: closing audio\n");

		SDL_CloseAudio();
	}
}
开发者ID:Ilgrim,项目名称:MAMEHub,代码行数:9,代码来源:sound.c

示例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();
}
开发者ID:hexameron,项目名称:DOOM,代码行数:9,代码来源:l_sound_sdl.c


注:本文中的SDL_CloseAudio函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。