• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ FMOD_System_Release函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中FMOD_System_Release函数的典型用法代码示例。如果您正苦于以下问题:C++ FMOD_System_Release函数的具体用法?C++ FMOD_System_Release怎么用?C++ FMOD_System_Release使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了FMOD_System_Release函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: FMOD_Sound_Release

void SSVisualizer::Shutdown( SubsystemCollection* const subsystemCollection ) {
	// Perform Cleanup here (Don't forget to set shutdown order priority!)
	FMOD_Sound_Release(m_Song);
	FMOD_System_Close(m_SoundSystem);
	FMOD_System_Release(m_SoundSystem);
	if (m_Allocator) delete m_Allocator;
}
开发者ID:toimelin,项目名称:gameenginecourse2015,代码行数:7,代码来源:SSVisualizer.cpp


示例2: gaugecall

void FSAPI gaugecall(PGAUGEHDR pgauge, int service_id, UINT32 extra_data)
{
	// Added to call all lookups and the license check routine //
	switch(service_id)
	{
	case PANEL_SERVICE_CONNECT_TO_WINDOW:
	{ // Add here, all inicializations and conections.
		OpenLinkFsUIPC();
		InitializeIFlyVariables();
		break;
	}
	case PANEL_SERVICE_PRE_INSTALL:
		InitializeIFlyVariables();
		break;
	case PANEL_SERVICE_PRE_UPDATE:
		break;
	case PANEL_SERVICE_DISCONNECT:
	{ // free resouces and close conections.
		FSUIPC_Close();

		/*
        Shut down
		*/
		//FMOD_Sound_Release(sound);
		FMOD_System_Close(systemFMOD);
		FMOD_System_Release(systemFMOD);
		break;
	}
	case PANEL_SERVICE_PRE_KILL:
	break;
	}
}
开发者ID:rhpa23,项目名称:IFly_737NG_Gauges,代码行数:32,代码来源:IFLY_NG_GAUGE_PLUGIN.Sound.c


示例3: FMOD_System_Close

void Audio::nettoyer() {
	resultat = FMOD_System_Close(_systeme);
	erreur(resultat, 2);

	resultat = FMOD_System_Release(_systeme);
	erreur(resultat, 3);
}
开发者ID:rems4e,项目名称:Projet2MIC,代码行数:7,代码来源:Audio.cpp


示例4: FMOD_Shutdown

void FMOD_Shutdown (void)
{
	if (COM_CheckParm("-nosound"))
	{
		SND_Initialised = false;
		SND_InitialisedCD = false;
		return;
	}

	if (SND_MusicChannel.channel)
		FMOD_Channel_Stop(SND_MusicChannel.channel);

	CDA_Shutdown();


	if (fmod_music)
		FMOD_Sound_Release(fmod_music);

	if (fmod_system)
	{
		result = FMOD_System_Close(fmod_system);
		FMOD_ERROR(result, true, false);
		result = FMOD_System_Release(fmod_system);
		FMOD_ERROR(result, true, false);
	}

	SND_Initialised = false;
	SND_InitialisedCD = false;
}
开发者ID:infernuslord,项目名称:uqe-quake,代码行数:29,代码来源:snd_fmod.c


示例5: music_close

void    music_close(t_music *m)
{
  m->DUCK_isPlaying = 0;
  FMOD_Sound_Release(m->music);
  FMOD_System_Close(m->system);
  FMOD_System_Release(m->system);
}
开发者ID:d3xt3-bitstechlab,项目名称:duck-engine,代码行数:7,代码来源:music.c


示例6: FMOD_System_Close

cSoundSystemFmod::~cSoundSystemFmod(){
	if(mpSystem){
		result = FMOD_System_Close(mpSystem);
		ERRCHECK(result);
		result = FMOD_System_Release(mpSystem);
		ERRCHECK(result);
	}
}
开发者ID:ghoulsblade,项目名称:lugreexample,代码行数:8,代码来源:lugre_sound_fmod.cpp


示例7: FMOD_System_Release

void Audio::quit(){
    if(System){
        SoundCache.clear();
        FMOD_System_Release(System);

        System = NULL;
    }
}
开发者ID:William8915,项目名称:QSanguosha,代码行数:8,代码来源:audio.cpp


示例8: FMOD_System_Close

CFModExDriver::~CFModExDriver()
{


    //dtor
    FMOD_System_Close(_audioSystem);
    FMOD_System_Release(_audioSystem);
}
开发者ID:teto,项目名称:bluecosmos,代码行数:8,代码来源:CFModExDriver.cpp


示例9: main

int main(void)
{
	SDL_Surface *screen = NULL, *viseur = NULL;
	SDL_Event event;
	SDL_Rect position;
	FMOD_SYSTEM *system;
	FMOD_SOUND *tir = NULL;
	FMOD_RESULT resultat;
	int continuer = 1;

	/*Initiation de FMOD pour le tir du pistolet*/
	FMOD_System_Create(&system);
	FMOD_System_Init(system, 2, FMOD_INIT_NORMAL, NULL);

	resultat = FMOD_System_CreateSound(system,"gun_shot.mp3",FMOD_CREATESAMPLE, 0, &tir);
	if(resultat != FMOD_OK)
	{
		fprintf(stderr, "Impossible de lire gun_shot.mp3");
		exit(EXIT_FAILURE);
	}
	/*Initiation de la SDL*/
	SDL_Init(SDL_INIT_VIDEO);
	SDL_ShowCursor(SDL_DISABLE);
	screen = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE | SDL_DOUBLEBUF);
	SDL_WM_SetCaption("Gestion du son avec FMOD", NULL);
	viseur = IMG_Load("cible.png");

	SDL_EnableKeyRepeat(10, 10);
	while(continuer)
	{
		SDL_WaitEvent(&event);

		switch(event.type)
		{
			case SDL_QUIT:
				continuer = 0;
				break;
			case SDL_MOUSEBUTTONDOWN:
				FMOD_System_PlaySound(system, FMOD_CHANNEL_FREE, tir, 0, NULL);
				break;
			case SDL_MOUSEMOTION:
				position.x = event.motion.x - (viseur->w / 2);
				position.y = event.motion.y - (viseur->h / 2);
				break;
		}
		SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 0, 0, 0));
		SDL_BlitSurface(viseur, NULL, screen, &position);
		SDL_Flip(screen);
	}

	SDL_FreeSurface(viseur);
	SDL_Quit();
	FMOD_Sound_Release(tir);
	FMOD_System_Close(system);
	FMOD_System_Release(system);

	return EXIT_SUCCESS;
}
开发者ID:4charles2,项目名称:langace_c,代码行数:58,代码来源:initFMOD.c


示例10: FMOD_System_Release

	Audio::~Audio()
	{
		//release all samples
		for (Iterator i = samples.begin(); i != samples.end(); ++i)
		{
			(*i) = NULL;
		}
		FMOD_System_Release(system);
	}
开发者ID:DxTa,项目名称:Wheel-Of-Fortune,代码行数:9,代码来源:audio.cpp


示例11: close_sound_system

static void close_sound_system(FMOD_SYSTEM *system)
{
	FMOD_RESULT result;

	result = FMOD_System_Close(system);
	ERRCHECK(result);
	result = FMOD_System_Release(system);
	ERRCHECK(result);
}
开发者ID:yeroca,项目名称:AudioTriggersPlus,代码行数:9,代码来源:main.c


示例12: FMOD_CHECK

	void AudioPlayer::cleunup()
	{
		if ( mFmodSys )
		{
			FMOD_CHECK( FMOD_System_Close( mFmodSys ) );
			FMOD_CHECK( FMOD_System_Release( mFmodSys ) );
			mFmodSys = NULL;
		}
	}
开发者ID:uvbs,项目名称:GameProject,代码行数:9,代码来源:AudioPlayer.cpp


示例13: FMOD_Sound_Release

SoundManager::~SoundManager()
{
	if (mSpectrum != 0)
		delete mSpectrum;

	FMOD_Sound_Release(mMusic);
	FMOD_System_Close(mSystem);
	FMOD_System_Release(mSystem);
}
开发者ID:vincenthugues,项目名称:music_visualizer,代码行数:9,代码来源:SoundManager.cpp


示例14: Java_org_fmod_realtimestitching_Example_cEnd

void Java_org_fmod_realtimestitching_Example_cEnd(JNIEnv *env, jobject thiz)
{
	FMOD_RESULT result = FMOD_OK;

	result = FMOD_Sound_Release(gSound); /* Freeing a parent subsound also frees its children. */
	CHECK_RESULT(result);

	result = FMOD_System_Release(gSystem);
	CHECK_RESULT(result);
}
开发者ID:mperroteau,项目名称:Euterpe,代码行数:10,代码来源:main.c


示例15: Java_org_fmod_fsb_Example_cEnd

void Java_org_fmod_fsb_Example_cEnd(JNIEnv *env, jobject thiz)
{
	FMOD_RESULT result = FMOD_OK;
	unsigned int i = 0;

	result = FMOD_Sound_Release(gFSB);
	CHECK_RESULT(result);

	result = FMOD_System_Release(gSystem);
	CHECK_RESULT(result);
}
开发者ID:mperroteau,项目名称:Euterpe,代码行数:11,代码来源:main.c


示例16: I_ShutdownSound

void I_ShutdownSound(void)
{
	I_Assert(sound_started);
	sound_started = false;

#ifdef HAVE_LIBGME
	if (gme)
		gme_delete(gme);
#endif
	FMR(FMOD_System_Release(fsys));
}
开发者ID:HipsterLion,项目名称:SRB2,代码行数:11,代码来源:win_snd.c


示例17: whitgl_sound_shutdown

void whitgl_sound_shutdown()
{
	WHITGL_LOG("Shutdown fmod");
	FMOD_RESULT result;
	int i;
	for(i=0; i<num_sounds; i++)
		FMOD_Sound_Release(sounds[i].sound);
	result = FMOD_System_Close(fmodSystem);
	_whitgl_sound_errcheck("FMOD_System_Close", result);
	result = FMOD_System_Release(fmodSystem);
	_whitgl_sound_errcheck("FMOD_System_Release", result);
}
开发者ID:whitingjp,项目名称:ld29,代码行数:12,代码来源:sound.c


示例18: fmod_cleanup

int fmod_cleanup(void)
{
	int i;
	FMOD_RESULT result;
	for (i=0; i<NSOUNDS; i++) {
		result = FMOD_Sound_Release(sound[i]);
		if (ERRCHECK(result)) return 1;
	}
	result = FMOD_System_Close(xsystem);
	if (ERRCHECK(result)) return 1;
	result = FMOD_System_Release(xsystem);
	if (ERRCHECK(result)) return 1;
	return 0;
}
开发者ID:srocha2,项目名称:Final-CS335,代码行数:14,代码来源:fmod.c


示例19: Java_org_fmod_playsound_Example_cEnd

void Java_org_fmod_playsound_Example_cEnd(JNIEnv *env, jobject thiz)
{
	FMOD_RESULT result = FMOD_OK;
	unsigned int i = 0;

	for (i = 0; i < NUM_SOUNDS; i++)
	{
		result = FMOD_Sound_Release(gSound[i]);
		CHECK_RESULT(result);
	}

	result = FMOD_System_Release(gSystem);
	CHECK_RESULT(result);
}
开发者ID:mperroteau,项目名称:Euterpe,代码行数:14,代码来源:main.c


示例20: FMOD_Sound_Release

Ultra::~Ultra()
{
	FMOD_Sound_Release(hold);
	FMOD_Sound_Release(move);
	FMOD_Sound_Release(drop);
	FMOD_Sound_Release(deletion);
	
	FMOD_Sound_Release(marathonMusic);
	FMOD_Sound_Release(sprintMusic);
	FMOD_Sound_Release(ultraMusic);
	
	FMOD_System_Close(system);
	FMOD_System_Release(system);
}
开发者ID:Shiryu,项目名称:Flocks,代码行数:14,代码来源:mode.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ FMOD_System_Update函数代码示例发布时间:2022-05-30
下一篇:
C++ FMOD_System_PlaySound函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap