本文整理汇总了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;
}
示例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;
}
}
示例3: FMOD_System_Close
void Audio::nettoyer() {
resultat = FMOD_System_Close(_systeme);
erreur(resultat, 2);
resultat = FMOD_System_Release(_systeme);
erreur(resultat, 3);
}
示例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;
}
示例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);
}
示例6: FMOD_System_Close
cSoundSystemFmod::~cSoundSystemFmod(){
if(mpSystem){
result = FMOD_System_Close(mpSystem);
ERRCHECK(result);
result = FMOD_System_Release(mpSystem);
ERRCHECK(result);
}
}
示例7: FMOD_System_Release
void Audio::quit(){
if(System){
SoundCache.clear();
FMOD_System_Release(System);
System = NULL;
}
}
示例8: FMOD_System_Close
CFModExDriver::~CFModExDriver()
{
//dtor
FMOD_System_Close(_audioSystem);
FMOD_System_Release(_audioSystem);
}
示例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;
}
示例10: FMOD_System_Release
Audio::~Audio()
{
//release all samples
for (Iterator i = samples.begin(); i != samples.end(); ++i)
{
(*i) = NULL;
}
FMOD_System_Release(system);
}
示例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);
}
示例12: FMOD_CHECK
void AudioPlayer::cleunup()
{
if ( mFmodSys )
{
FMOD_CHECK( FMOD_System_Close( mFmodSys ) );
FMOD_CHECK( FMOD_System_Release( mFmodSys ) );
mFmodSys = NULL;
}
}
示例13: FMOD_Sound_Release
SoundManager::~SoundManager()
{
if (mSpectrum != 0)
delete mSpectrum;
FMOD_Sound_Release(mMusic);
FMOD_System_Close(mSystem);
FMOD_System_Release(mSystem);
}
示例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);
}
示例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);
}