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


C++ CAudioManager::ReleaseSoundBUF方法代码示例

本文整理汇总了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;
}
开发者ID:,项目名称:,代码行数:11,代码来源:

示例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);
  }
}
开发者ID:FlySimvol,项目名称:FlyLegacy,代码行数:41,代码来源:PlaneSounds.cpp


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