本文整理汇总了C++中CAudioManager::ReleaseSoundBUF方法的典型用法代码示例。如果您正苦于以下问题:C++ CAudioManager::ReleaseSoundBUF方法的具体用法?C++ CAudioManager::ReleaseSoundBUF怎么用?C++ CAudioManager::ReleaseSoundBUF使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAudioManager
的用法示例。
在下文中一共展示了CAudioManager::ReleaseSoundBUF方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Release
//---------------------------------------------------------------------
// Release the buffer according to the type
// filename=> Named cache
// else => Tag Cache
//----------------------------------------------------------------------
void CSoundBUF::Release()
{ CAudioManager *snd = globals->snd;
if (nfile) snd->ReleaseSoundBUF(this);
else snd->ReleaseSoundBUF(idn);
return;
}
示例2:
//-------------------------------------------------------------------------
// Destroy this object
//-------------------------------------------------------------------------
CVehicleSound::~CVehicleSound (void)
{ // Clean up engine sound sub-object instances
//---Release Engine sounds buffers ---------------------------
CAudioManager *snd = globals->snd;
snd->ReleaseSoundBUF('crkE'); // External engine start
snd->ReleaseSoundBUF('catE'); // Engine Catching
snd->ReleaseSoundBUF('runE'); // External running sound
snd->ReleaseSoundBUF('misE'); // External running sound
snd->ReleaseSoundBUF('hltE'); // External short stop
snd->ReleaseSoundBUF('falE'); // External engine Fail
snd->ReleaseSoundBUF('prsi'); // External propeller start
snd->ReleaseSoundBUF('pris'); // External propeller stop
snd->ReleaseSoundBUF('wind'); // External wind
snd->ReleaseSoundBUF('stal'); // External stall horn
snd->ReleaseSoundBUF('grnd'); // External ground noise
snd->ReleaseSoundBUF('outr'); // External outter marker
snd->ReleaseSoundBUF('midl'); // External middle marker
snd->ReleaseSoundBUF('innr'); // External inner marker
snd->ReleaseSoundBUF('gyrl'); // External gyro low
snd->ReleaseSoundBUF('gyrs'); // External gyro stable
snd->ReleaseSoundBUF('elts'); // External warning
snd->ReleaseSoundBUF('crgr'); // Gear crash
snd->ReleaseSoundBUF('crby'); // Body crash
snd->ReleaseSoundBUF('shok'); // Shock sound
//---Release Flap Sounds -------------------------------------
for (int k = 1; k <= NbFlap; k++)
{ Tag ids = 'Flp0' + k;
snd->ReleaseSoundBUF(ids);
}
//---Release Gear Sound -------------------------------------
snd->ReleaseSoundBUF('geru');
snd->ReleaseSoundBUF('gerd');
//---Release Tire Sounds -------------------------------------
for (int k = 0; k < NbTire; k++)
{ Tag ids = 'tir0' + k;
snd->ReleaseSoundBUF(ids);
}
}