當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。