本文整理汇总了C#中FMOD.Sound.getRaw方法的典型用法代码示例。如果您正苦于以下问题:C# Sound.getRaw方法的具体用法?C# Sound.getRaw怎么用?C# Sound.getRaw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FMOD.Sound
的用法示例。
在下文中一共展示了Sound.getRaw方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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;
}
示例2: recordStart
public RESULT recordStart(int id, Sound sound, bool loop)
{
return FMOD_System_RecordStart(systemraw, id, sound.getRaw(), (loop ? 1 : 0));
}
示例3: FMOD_System_RecordStart
public RESULT recordStart (int id, Sound sound, bool loop)
{
return FMOD_System_RecordStart(rawPtr, id, sound.getRaw(), loop);
}
示例4: setSubSound
public RESULT setSubSound(int index, Sound subsound)
{
IntPtr subsoundraw = subsound.getRaw();
return FMOD_Sound_SetSubSound(soundraw, index, subsoundraw);
}
示例5: FMOD_System_PlaySound
public RESULT playSound (Sound sound, ChannelGroup channelGroup, bool paused, out Channel channel)
{
channel = null;
IntPtr channelGroupRaw = (channelGroup != null) ? channelGroup.getRaw() : IntPtr.Zero;
IntPtr channelraw;
RESULT result = FMOD_System_PlaySound(rawPtr, sound.getRaw(), channelGroupRaw, paused, out channelraw);
channel = new Channel(channelraw);
return result;
}
示例6: recordStart
public RESULT recordStart(Sound sound, bool loop)
{
return FMOD_System_RecordStart(systemraw, sound.getRaw(), loop);
}
示例7: preloadFSB
// Pre-loading FSB files (from disk or from memory, use FMOD_OPENMEMORY_POINT to point to pre-loaded memory).
public RESULT preloadFSB(string filename, int streaminstance, Sound sound)
{
return FMOD_EventSystem_PreloadFSB(eventsystemraw, filename, streaminstance, sound.getRaw());
}
示例8: playSound
public RESULT playSound(Sound sound, ChannelGroup channelGroup, bool paused, out Channel channel)
{
channel = null;
IntPtr channelGroup2 = (!(channelGroup != null)) ? IntPtr.Zero : channelGroup.getRaw();
IntPtr raw;
RESULT result = System.FMOD5_System_PlaySound(this.rawPtr, sound.getRaw(), channelGroup2, paused, out raw);
channel = new Channel(raw);
return result;
}
示例9: IntPtr
public RESULT playSound (Sound sound, ChannelGroup channelGroup, bool paused, ref Channel channel)
{
RESULT result = RESULT.OK;
IntPtr channelraw;
Channel channelnew = null;
if (channel != null)
{
channelraw = channel.getRaw();
}
else
{
channelraw = new IntPtr();
}
IntPtr channelGroupRaw = (channelGroup != null) ? channelGroup.getRaw() : (IntPtr)0;
try
{
result = FMOD_System_PlaySound(systemraw, sound.getRaw(), channelGroupRaw, (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;
}