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


C++ FMOD_System_Release函数代码示例

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


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


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