本文整理汇总了C#中CHANNELINDEX类的典型用法代码示例。如果您正苦于以下问题:C# CHANNELINDEX类的具体用法?C# CHANNELINDEX怎么用?C# CHANNELINDEX使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CHANNELINDEX类属于命名空间,在下文中一共展示了CHANNELINDEX类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FMOD_System_PlaySound
private static extern RESULT FMOD_System_PlaySound(IntPtr system, CHANNELINDEX channelid, IntPtr sound, int paused, ref IntPtr channel);
示例2: playSound
public RESULT playSound(CHANNELINDEX channelid, Sound sound, bool paused, ref Channel channel)
{
RESULT result = RESULT.OK;
IntPtr channelraw;
Channel channelnew = null;
if (channel != null)
{
channelraw = channel.getRaw();
}
else
{
channelraw = new IntPtr();
}
try
{
result = FMOD_System_PlaySound(systemraw, channelid, sound.getRaw(), (paused ? 1 : 0), ref channelraw);
}
catch
{
result = RESULT.ERR_INVALID_PARAM;
}
if (result != RESULT.OK)
{
return result;
}
if (channel == null)
{
channelnew = new Channel();
channelnew.setRaw(channelraw);
channel = channelnew;
}
else
{
channel.setRaw(channelraw);
}
return result;
}
示例3: FMOD_System_PlayDSP
public static extern RESULT FMOD_System_PlayDSP(IntPtr system, CHANNELINDEX channelid, IntPtr dsp, bool paused, ref IntPtr channel);
示例4: PlaySound
public Channel PlaySound(CHANNELINDEX channelIndex, bool paused)
{
return new Channel(_audioSystem, channelIndex, this, paused);
}
示例5: Channel
public Channel(AudioSystem audioSystem, CHANNELINDEX channelIndex, Sound sound, bool paused)
{
_audioSystem = audioSystem;
_sound = sound;
_audioSystem.System.playSound(channelIndex, _sound.SoundInstance, paused, ref _channel).Check();
}