本文整理汇总了C#中FMOD.DSP.setRaw方法的典型用法代码示例。如果您正苦于以下问题:C# DSP.setRaw方法的具体用法?C# DSP.setRaw怎么用?C# DSP.setRaw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FMOD.DSP
的用法示例。
在下文中一共展示了DSP.setRaw方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: createDSPByType
public RESULT createDSPByType(DSP_TYPE type, ref DSP dsp)
{
RESULT result = RESULT.OK;
IntPtr dspraw = new IntPtr();
DSP dspnew = null;
try
{
result = FMOD_System_CreateDSPByType(systemraw, type, ref dspraw);
}
catch
{
result = RESULT.ERR_INVALID_PARAM;
}
if (result != RESULT.OK)
{
return result;
}
if (dsp == null)
{
dspnew = new DSP();
dspnew.setRaw(dspraw);
dsp = dspnew;
}
else
{
dsp.setRaw(dspraw);
}
return result;
}
示例2: getDSPHead
// System level DSP access.
public RESULT getDSPHead(ref DSP dsp)
{
RESULT result = RESULT.OK;
IntPtr dspraw = new IntPtr();
DSP dspnew = null;
try
{
result = FMOD_System_GetDSPHead(systemraw, ref dspraw);
}
catch
{
result = RESULT.ERR_INVALID_PARAM;
}
if (result != RESULT.OK)
{
return result;
}
if (dsp == null)
{
dspnew = new DSP();
dspnew.setRaw(dspraw);
dsp = dspnew;
}
else
{
dsp.setRaw(dspraw);
}
return result;
}
示例3: createDSP
public RESULT createDSP(ref DSP_DESCRIPTION description, ref DSP dsp)
{
RESULT result = RESULT.OK;
IntPtr dspraw = new IntPtr();
DSP dspnew = null;
try
{
result = FMOD_System_CreateDSP(systemraw, ref description, ref dspraw);
}
catch
{
result = RESULT.ERR_INVALID_PARAM;
}
if (result != RESULT.OK)
{
return result;
}
if (dsp == null)
{
dspnew = new DSP();
dspnew.setRaw(dspraw);
dsp = dspnew;
}
else
{
dsp.setRaw(dspraw);
}
return result;
}
示例4: getOutput
public RESULT getOutput(ref DSP output)
{
RESULT result = RESULT.OK;
IntPtr dspraw = new IntPtr();
DSP dspnew = null;
try
{
result = FMOD_DSPConnection_GetOutput(dspconnectionraw, ref dspraw);
}
catch
{
result = RESULT.ERR_INVALID_PARAM;
}
if (result != RESULT.OK)
{
return result;
}
if (output == null)
{
dspnew = new DSP();
dspnew.setRaw(dspraw);
output = dspnew;
}
else
{
output.setRaw(dspraw);
}
return result;
}
示例5: getInput
public RESULT getInput(int index, ref DSP input, ref DSPConnection inputconnection)
{
RESULT result = RESULT.OK;
IntPtr dsprawnew = new IntPtr();
DSP dspnew = null;
IntPtr dspconnectionraw = new IntPtr();
DSPConnection dspconnectionnew = null;
try
{
result = FMOD_DSP_GetInput(dspraw, index, ref dsprawnew, ref dspconnectionraw);
}
catch
{
result = RESULT.ERR_INVALID_PARAM;
}
if (result != RESULT.OK)
{
return result;
}
if (input == null)
{
dspnew = new DSP();
dspnew.setRaw(dsprawnew);
input = dspnew;
}
else
{
input.setRaw(dsprawnew);
}
if (inputconnection == null)
{
dspconnectionnew = new DSPConnection();
dspconnectionnew.setRaw(dspconnectionraw);
inputconnection = dspconnectionnew;
}
else
{
inputconnection.setRaw(dspconnectionraw);
}
return result;
}
示例6: getDSPHead
// DSP functionality only for channel groups playing sounds created with FMOD_SOFTWARE.
public RESULT getDSPHead(ref DSP dsp)
{
var result = RESULT.OK;
var dspraw = new IntPtr();
DSP dspnew = null;
try
{
result = FMOD_ChannelGroup_GetDSPHead(channelgroupraw, ref dspraw);
}
catch
{
result = RESULT.ERR_INVALID_PARAM;
}
if (result != RESULT.OK)
{
return result;
}
if (dsp == null)
{
dspnew = new DSP();
dspnew.setRaw(dspraw);
dsp = dspnew;
}
else
{
dsp.setRaw(dspraw);
}
return result;
}