本文整理汇总了C#中FMOD.release方法的典型用法代码示例。如果您正苦于以下问题:C# FMOD.release方法的具体用法?C# FMOD.release怎么用?C# FMOD.release使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FMOD
的用法示例。
在下文中一共展示了FMOD.release方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CleanUpSound
private void CleanUpSound(ref FMOD.Sound fmodSound)
{
this.State = PlayerState.Stop;
this.CurrentMediaFile = null;
if (this.channelInfo != null && this.channelInfo.Channel != null) {
this.channelInfo.File.State = PlayerState.Stop;
this.channelInfo.Channel.setCallback(null);
this.channelInfo.Channel = null;
this.channelInfo.File = null;
this.channelInfo = null;
}
if (fmodSound != null) {
var result = fmodSound.release();
result.ERRCHECK();
fmodSound = null;
}
this.timer.Stop();
this.currentPositionMs = 0;
this.OnPropertyChanged("CurrentPositionMs");
this.LengthMs = 0;
}
示例2: CleanUpSystem
private void CleanUpSystem(ref FMOD.System fmodSystem)
{
if (fmodSystem != null) {
var result = fmodSystem.close();
result.ERRCHECK();
result = fmodSystem.release();
result.ERRCHECK();
fmodSystem = null;
}
}
示例3: CleanUpSound
private void CleanUpSound(ref FMOD.Sound fmodSound)
{
this.timer.Stop();
this.State = PlayerState.Stop;
this.CurrentMediaFile = null;
if (this.channelInfo != null)
{
this.channelInfo.CleanUp();
this.channelInfo = null;
this.system.update().ERRCHECK();
}
if (fmodSound != null)
{
fmodSound.release().ERRCHECK();
fmodSound = null;
this.system.update().ERRCHECK();
}
this.LengthMs = 0;
this.CurrentPositionMs = 0;
}