本文整理汇总了C#中FMOD.DSPConnection.setRaw方法的典型用法代码示例。如果您正苦于以下问题:C# DSPConnection.setRaw方法的具体用法?C# DSPConnection.setRaw怎么用?C# DSPConnection.setRaw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FMOD.DSPConnection
的用法示例。
在下文中一共展示了DSPConnection.setRaw方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: addDSP
public RESULT addDSP(DSP dsp, ref DSPConnection connection)
{
RESULT result = RESULT.OK;
IntPtr dspconnectionraw = new IntPtr();
DSPConnection dspconnectionnew = null;
try
{
result = FMOD_System_AddDSP(systemraw, dsp.getRaw(), ref dspconnectionraw);
}
catch
{
result = RESULT.ERR_INVALID_PARAM;
}
if (result != RESULT.OK)
{
return result;
}
if (connection == null)
{
dspconnectionnew = new DSPConnection();
dspconnectionnew.setRaw(dspconnectionraw);
connection = dspconnectionnew;
}
else
{
connection.setRaw(dspconnectionraw);
}
return result;
}
示例2: addInput
public RESULT addInput(DSP target, ref DSPConnection connection)
{
RESULT result = RESULT.OK;
IntPtr dspconnectionraw = new IntPtr();
DSPConnection dspconnectionnew = null;
try
{
result = FMOD_DSP_AddInput(dspraw, target.getRaw(), ref dspconnectionraw);
}
catch
{
result = RESULT.ERR_INVALID_PARAM;
}
if (result != RESULT.OK)
{
return result;
}
if (connection == null)
{
dspconnectionnew = new DSPConnection();
dspconnectionnew.setRaw(dspconnectionraw);
connection = dspconnectionnew;
}
else
{
connection.setRaw(dspconnectionraw);
}
return result;
}
示例3: getOutput
public RESULT getOutput(int index, ref DSP output, ref DSPConnection outputconnection)
{
RESULT result = RESULT.OK;
IntPtr dsprawnew = new IntPtr();
DSP dspnew = null;
IntPtr dspconnectionraw = new IntPtr();
DSPConnection dspconnectionnew = null;
try
{
result = FMOD_DSP_GetOutput(dspraw, index, ref dsprawnew, ref dspconnectionraw);
}
catch
{
result = RESULT.ERR_INVALID_PARAM;
}
if (result != RESULT.OK)
{
return result;
}
if (output == null)
{
dspnew = new DSP();
dspnew.setRaw(dsprawnew);
output = dspnew;
}
else
{
output.setRaw(dsprawnew);
}
if (outputconnection == null)
{
dspconnectionnew = new DSPConnection();
dspconnectionnew.setRaw(dspconnectionraw);
outputconnection = dspconnectionnew;
}
else
{
outputconnection.setRaw(dspconnectionraw);
}
return result;
}
示例4: IntPtr
public RESULT addDSP (DSP dsp, CHANNELCONTROL_DSP_INDEX index, ref DSPConnection connection)
{
RESULT result = RESULT.OK;
IntPtr dspconnectionraw = new IntPtr();
DSPConnection dspconnectionnew = null;
try
{
result = FMOD_ChannelGroup_AddDSP(channelgroupraw, index, dsp.getRaw(), ref dspconnectionraw);
}
catch
{
result = RESULT.ERR_INVALID_PARAM;
}
if (result != RESULT.OK)
{
return result;
}
if (connection == null)
{
dspconnectionnew = new DSPConnection();
dspconnectionnew.setRaw(dspconnectionraw);
connection = dspconnectionnew;
}
else
{
connection.setRaw(dspconnectionraw);
}
return result;
}