mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
1059 lines
43 KiB
C#
1059 lines
43 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Fmod.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.FmodApi
|
|
{
|
|
public static partial class Fmod
|
|
{
|
|
/// ChannelGroup::getSystemObject
|
|
public static unsafe Result TryGetSystemObject(this ChannelGroup channelGroup, out FmodSystem system)
|
|
{
|
|
fixed (FmodSystem* systemPtr = &system)
|
|
return PInvoke.ChannelGroupGetSystemObject(channelGroup, systemPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getSystemObject
|
|
public static FmodSystem GetSystemObject(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetSystemObject(channelGroup, out var system).Check();
|
|
return system;
|
|
}
|
|
|
|
/// ChannelGroup::stop
|
|
public static Result TryStop(this ChannelGroup channelGroup) => PInvoke.ChannelGroupStop(channelGroup);
|
|
|
|
/// ChannelGroup::stop
|
|
public static void Stop(this ChannelGroup channelGroup) => TryStop(channelGroup).Check();
|
|
|
|
/// ChannelGroup::setPaused
|
|
public static Result TrySetPaused(this ChannelGroup channelGroup, Bool32 paused) =>
|
|
PInvoke.ChannelGroupSetPaused(channelGroup, paused);
|
|
|
|
/// ChannelGroup::setPaused
|
|
public static void SetPaused(this ChannelGroup channelGroup, Bool32 paused) =>
|
|
TrySetPaused(channelGroup, paused).Check();
|
|
|
|
/// ChannelGroup::getPaused
|
|
public static unsafe Result TryGetPaused(this ChannelGroup channelGroup, out Bool32 paused)
|
|
{
|
|
fixed (Bool32* pausedPtr = &paused)
|
|
return PInvoke.ChannelGroupGetPaused(channelGroup, pausedPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getPaused
|
|
public static Bool32 GetPaused(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetPaused(channelGroup, out var paused).Check();
|
|
return paused;
|
|
}
|
|
|
|
/// ChannelGroup::setVolume
|
|
public static Result TrySetVolume(this ChannelGroup channelGroup, float volume) =>
|
|
PInvoke.ChannelGroupSetVolume(channelGroup, volume);
|
|
|
|
/// ChannelGroup::setVolume
|
|
public static void SetVolume(this ChannelGroup channelGroup, float volume) =>
|
|
TrySetVolume(channelGroup, volume).Check();
|
|
|
|
/// ChannelGroup::getVolume
|
|
public static unsafe Result TryGetVolume(this ChannelGroup channelGroup, out float volume)
|
|
{
|
|
fixed (float* volumePtr = &volume)
|
|
return PInvoke.ChannelGroupGetVolume(channelGroup, volumePtr);
|
|
}
|
|
|
|
/// ChannelGroup::getVolume
|
|
public static float GetVolume(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetVolume(channelGroup, out var volume).Check();
|
|
return volume;
|
|
}
|
|
|
|
/// ChannelGroup::setVolumeRamp
|
|
public static Result TrySetVolumeRamp(this ChannelGroup channelGroup, Bool32 ramp) =>
|
|
PInvoke.ChannelGroupSetVolumeRamp(channelGroup, ramp);
|
|
|
|
/// ChannelGroup::setVolumeRamp
|
|
public static void SetVolumeRamp(this ChannelGroup channelGroup, Bool32 ramp) =>
|
|
TrySetVolumeRamp(channelGroup, ramp).Check();
|
|
|
|
/// ChannelGroup::getVolumeRamp
|
|
public static unsafe Result TryGetVolumeRamp(this ChannelGroup channelGroup, out Bool32 ramp)
|
|
{
|
|
fixed (Bool32* rampPtr = &ramp)
|
|
return PInvoke.ChannelGroupGetVolumeRamp(channelGroup, rampPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getVolumeRamp
|
|
public static Bool32 GetVolumeRamp(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetVolumeRamp(channelGroup, out var ramp).Check();
|
|
return ramp;
|
|
}
|
|
|
|
/// ChannelGroup::getAudibility
|
|
public static unsafe Result TryGetAudibility(this ChannelGroup channelGroup, out float audibility)
|
|
{
|
|
fixed (float* audibilityPtr = &audibility)
|
|
return PInvoke.ChannelGroupGetAudibility(channelGroup, audibilityPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getAudibility
|
|
public static float GetAudibility(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetAudibility(channelGroup, out var audibility).Check();
|
|
return audibility;
|
|
}
|
|
|
|
/// ChannelGroup::setPitch
|
|
public static Result TrySetPitch(this ChannelGroup channelGroup, float pitch) =>
|
|
PInvoke.ChannelGroupSetPitch(channelGroup, pitch);
|
|
|
|
/// ChannelGroup::setPitch
|
|
public static void SetPitch(this ChannelGroup channelGroup, float pitch) =>
|
|
TrySetPitch(channelGroup, pitch).Check();
|
|
|
|
/// ChannelGroup::getPitch
|
|
public static unsafe Result TryGetPitch(this ChannelGroup channelGroup, out float pitch)
|
|
{
|
|
fixed (float* pitchPtr = &pitch)
|
|
return PInvoke.ChannelGroupGetPitch(channelGroup, pitchPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getPitch
|
|
public static float GetPitch(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetPitch(channelGroup, out var pitch).Check();
|
|
return pitch;
|
|
}
|
|
|
|
/// ChannelGroup::setMute
|
|
public static Result TrySetMute(this ChannelGroup channelGroup, Bool32 mute) =>
|
|
PInvoke.ChannelGroupSetMute(channelGroup, mute);
|
|
|
|
/// ChannelGroup::setMute
|
|
public static void SetMute(this ChannelGroup channelGroup, Bool32 mute) =>
|
|
TrySetMute(channelGroup, mute).Check();
|
|
|
|
/// ChannelGroup::getMute
|
|
public static unsafe Result TryGetMute(this ChannelGroup channelGroup, out Bool32 mute)
|
|
{
|
|
fixed (Bool32* mutePtr = &mute)
|
|
return PInvoke.ChannelGroupGetMute(channelGroup, mutePtr);
|
|
}
|
|
|
|
/// ChannelGroup::getMute
|
|
public static Bool32 GetMute(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetMute(channelGroup, out var mute).Check();
|
|
return mute;
|
|
}
|
|
|
|
/// ChannelGroup::setReverbProperties
|
|
public static Result TrySetReverbProperties(this ChannelGroup channelGroup, int instance, float wet) =>
|
|
PInvoke.ChannelGroupSetReverbProperties(channelGroup, instance, wet);
|
|
|
|
/// ChannelGroup::setReverbProperties
|
|
public static void SetReverbProperties(this ChannelGroup channelGroup, int instance, float wet) =>
|
|
TrySetReverbProperties(channelGroup, instance, wet).Check();
|
|
|
|
/// ChannelGroup::getReverbProperties
|
|
public static unsafe Result TryGetReverbProperties(this ChannelGroup channelGroup, int instance, out float wet)
|
|
{
|
|
fixed (float* wetPtr = &wet)
|
|
return PInvoke.ChannelGroupGetReverbProperties(channelGroup, instance, wetPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getReverbProperties
|
|
public static float GetReverbProperties(this ChannelGroup channelGroup, int instance)
|
|
{
|
|
TryGetReverbProperties(channelGroup, instance, out var wet).Check();
|
|
return wet;
|
|
}
|
|
|
|
/// ChannelGroup::setLowPassGain
|
|
public static Result TrySetLowPassGain(this ChannelGroup channelGroup, float gain) =>
|
|
PInvoke.ChannelGroupSetLowPassGain(channelGroup, gain);
|
|
|
|
/// ChannelGroup::setLowPassGain
|
|
public static void SetLowPassGain(this ChannelGroup channelGroup, float gain) =>
|
|
TrySetLowPassGain(channelGroup, gain).Check();
|
|
|
|
/// ChannelGroup::getLowPassGain
|
|
public static unsafe Result TryGetLowPassGain(this ChannelGroup channelGroup, out float gain)
|
|
{
|
|
fixed (float* gainPtr = &gain)
|
|
return PInvoke.ChannelGroupGetLowPassGain(channelGroup, gainPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getLowPassGain
|
|
public static float GetLowPassGain(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetLowPassGain(channelGroup, out var gain).Check();
|
|
return gain;
|
|
}
|
|
|
|
/// ChannelGroup::setMode
|
|
public static Result TrySetMode(this ChannelGroup channelGroup, Mode mode) =>
|
|
PInvoke.ChannelGroupSetMode(channelGroup, mode);
|
|
|
|
/// ChannelGroup::setMode
|
|
public static void SetMode(this ChannelGroup channelGroup, Mode mode) => TrySetMode(channelGroup, mode).Check();
|
|
|
|
/// ChannelGroup::getMode
|
|
public static unsafe Result TryGetMode(this ChannelGroup channelGroup, out Mode mode)
|
|
{
|
|
fixed (Mode* modePtr = &mode)
|
|
return PInvoke.ChannelGroupGetMode(channelGroup, modePtr);
|
|
}
|
|
|
|
/// ChannelGroup::getMode
|
|
public static Mode GetMode(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetMode(channelGroup, out var mode).Check();
|
|
return mode;
|
|
}
|
|
|
|
/// ChannelGroup::setCallback
|
|
public static Result TrySetCallback(this ChannelGroup channelGroup, ChannelControlCallbackPtr callback) =>
|
|
PInvoke.ChannelGroupSetCallback(channelGroup, callback);
|
|
|
|
/// ChannelGroup::setCallback
|
|
public static void SetCallback(this ChannelGroup channelGroup, ChannelControlCallbackPtr callback) =>
|
|
TrySetCallback(channelGroup, callback).Check();
|
|
|
|
/// ChannelGroup::isPlaying
|
|
public static unsafe Result TryIsPlaying(this ChannelGroup channelGroup, out Bool32 isPlaying)
|
|
{
|
|
fixed (Bool32* isPlayingPtr = &isPlaying)
|
|
return PInvoke.ChannelGroupIsPlaying(channelGroup, isPlayingPtr);
|
|
}
|
|
|
|
/// ChannelGroup::isPlaying
|
|
public static Bool32 IsPlaying(this ChannelGroup channelGroup)
|
|
{
|
|
TryIsPlaying(channelGroup, out var isPlaying).Check();
|
|
return isPlaying;
|
|
}
|
|
|
|
/// ChannelGroup::setPan
|
|
public static Result TrySetPan(this ChannelGroup channelGroup, float pan) =>
|
|
PInvoke.ChannelGroupSetPan(channelGroup, pan);
|
|
|
|
/// ChannelGroup::setPan
|
|
public static void SetPan(this ChannelGroup channelGroup, float pan) => TrySetPan(channelGroup, pan).Check();
|
|
|
|
/// ChannelGroup::setMixLevelsOutput
|
|
public static Result TrySetMixLevelsOutput(
|
|
this ChannelGroup channelGroup,
|
|
float frontLeft,
|
|
float frontRight,
|
|
float center,
|
|
float lfe,
|
|
float surroundLeft,
|
|
float surroundRight,
|
|
float backLeft,
|
|
float backRight
|
|
) =>
|
|
PInvoke.ChannelGroupSetMixLevelsOutput(
|
|
channelGroup,
|
|
frontLeft,
|
|
frontRight,
|
|
center,
|
|
lfe,
|
|
surroundLeft,
|
|
surroundRight,
|
|
backLeft,
|
|
backRight
|
|
);
|
|
|
|
/// ChannelGroup::setMixLevelsOutput
|
|
public static void SetMixLevelsOutput(
|
|
this ChannelGroup channelGroup,
|
|
float frontLeft,
|
|
float frontRight,
|
|
float center,
|
|
float lfe,
|
|
float surroundLeft,
|
|
float surroundRight,
|
|
float backLeft,
|
|
float backRight
|
|
) =>
|
|
TrySetMixLevelsOutput(
|
|
channelGroup,
|
|
frontLeft,
|
|
frontRight,
|
|
center,
|
|
lfe,
|
|
surroundLeft,
|
|
surroundRight,
|
|
backLeft,
|
|
backRight
|
|
)
|
|
.Check();
|
|
|
|
/// ChannelGroup::setMixLevelsInput
|
|
public static unsafe Result TrySetMixLevelsInput(
|
|
this ChannelGroup channelGroup,
|
|
float* levels,
|
|
int numLevels
|
|
) => PInvoke.ChannelGroupSetMixLevelsInput(channelGroup, levels, numLevels);
|
|
|
|
/// ChannelGroup::setMixLevelsInput
|
|
public static unsafe void SetMixLevelsInput(this ChannelGroup channelGroup, float* levels, int numLevels) =>
|
|
TrySetMixLevelsInput(channelGroup, levels, numLevels).Check();
|
|
|
|
/// ChannelGroup::setMixMatrix
|
|
public static unsafe Result TrySetMixMatrix(
|
|
this ChannelGroup channelGroup,
|
|
float* matrix,
|
|
int outChannels,
|
|
int inChannels,
|
|
int inChannelHop
|
|
) => PInvoke.ChannelGroupSetMixMatrix(channelGroup, matrix, outChannels, inChannels, inChannelHop);
|
|
|
|
/// ChannelGroup::setMixMatrix
|
|
public static unsafe void SetMixMatrix(
|
|
this ChannelGroup channelGroup,
|
|
float* matrix,
|
|
int outChannels,
|
|
int inChannels,
|
|
int inChannelHop
|
|
) => TrySetMixMatrix(channelGroup, matrix, outChannels, inChannels, inChannelHop).Check();
|
|
|
|
/// ChannelGroup::getMixMatrix
|
|
public static unsafe Result TryGetMixMatrix(
|
|
this ChannelGroup channelGroup,
|
|
float* matrix,
|
|
out int outChannels,
|
|
out int inChannels,
|
|
int inChannelHop
|
|
)
|
|
{
|
|
fixed (int* outChannelsPtr = &outChannels)
|
|
fixed (int* inChannelsPtr = &inChannels)
|
|
return PInvoke.ChannelGroupGetMixMatrix(
|
|
channelGroup,
|
|
matrix,
|
|
outChannelsPtr,
|
|
inChannelsPtr,
|
|
inChannelHop
|
|
);
|
|
}
|
|
|
|
/// ChannelGroup::getMixMatrix
|
|
public static unsafe void GetMixMatrix(
|
|
this ChannelGroup channelGroup,
|
|
float* matrix,
|
|
out int outChannels,
|
|
out int inChannels,
|
|
int inChannelHop
|
|
) => TryGetMixMatrix(channelGroup, matrix, out outChannels, out inChannels, inChannelHop).Check();
|
|
|
|
/// ChannelGroup::getDSPClock
|
|
public static unsafe Result TryGetDspClock(
|
|
this ChannelGroup channelGroup,
|
|
out ulong dspClock,
|
|
out ulong parentClock
|
|
)
|
|
{
|
|
fixed (ulong* dspClockPtr = &dspClock)
|
|
fixed (ulong* parentClockPtr = &parentClock)
|
|
return PInvoke.ChannelGroupGetDspClock(channelGroup, dspClockPtr, parentClockPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getDSPClock
|
|
public static void GetDspClock(this ChannelGroup channelGroup, out ulong dspClock, out ulong parentClock) =>
|
|
TryGetDspClock(channelGroup, out dspClock, out parentClock).Check();
|
|
|
|
/// ChannelGroup::setDelay
|
|
public static Result TrySetDelay(
|
|
this ChannelGroup channelGroup,
|
|
ulong dspClockStart,
|
|
ulong dspClockEnd,
|
|
Bool32 stopChannels
|
|
) => PInvoke.ChannelGroupSetDelay(channelGroup, dspClockStart, dspClockEnd, stopChannels);
|
|
|
|
/// ChannelGroup::setDelay
|
|
public static void SetDelay(
|
|
this ChannelGroup channelGroup,
|
|
ulong dspClockStart,
|
|
ulong dspClockEnd,
|
|
Bool32 stopChannels
|
|
) => TrySetDelay(channelGroup, dspClockStart, dspClockEnd, stopChannels).Check();
|
|
|
|
/// ChannelGroup::getDelay
|
|
public static unsafe Result TryGetDelay(
|
|
this ChannelGroup channelGroup,
|
|
out ulong dspClockStart,
|
|
out ulong dspClockEnd,
|
|
out Bool32 stopChannels
|
|
)
|
|
{
|
|
fixed (ulong* dspClockStartPtr = &dspClockStart)
|
|
fixed (ulong* dspClockEndPtr = &dspClockEnd)
|
|
fixed (Bool32* stopChannelsPtr = &stopChannels)
|
|
return PInvoke.ChannelGroupGetDelay(channelGroup, dspClockStartPtr, dspClockEndPtr, stopChannelsPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getDelay
|
|
public static void GetDelay(
|
|
this ChannelGroup channelGroup,
|
|
out ulong dspClockStart,
|
|
out ulong dspClockEnd,
|
|
out Bool32 stopChannels
|
|
) => TryGetDelay(channelGroup, out dspClockStart, out dspClockEnd, out stopChannels).Check();
|
|
|
|
/// ChannelGroup::addFadePoint
|
|
public static Result TryAddFadePoint(this ChannelGroup channelGroup, ulong dspClock, float volume) =>
|
|
PInvoke.ChannelGroupAddFadePoint(channelGroup, dspClock, volume);
|
|
|
|
/// ChannelGroup::addFadePoint
|
|
public static void AddFadePoint(this ChannelGroup channelGroup, ulong dspClock, float volume) =>
|
|
TryAddFadePoint(channelGroup, dspClock, volume).Check();
|
|
|
|
/// ChannelGroup::setFadePointRamp
|
|
public static Result TrySetFadePointRamp(this ChannelGroup channelGroup, ulong dspClock, float volume) =>
|
|
PInvoke.ChannelGroupSetFadePointRamp(channelGroup, dspClock, volume);
|
|
|
|
/// ChannelGroup::setFadePointRamp
|
|
public static void SetFadePointRamp(this ChannelGroup channelGroup, ulong dspClock, float volume) =>
|
|
TrySetFadePointRamp(channelGroup, dspClock, volume).Check();
|
|
|
|
/// ChannelGroup::removeFadePoints
|
|
public static Result TryRemoveFadePoints(
|
|
this ChannelGroup channelGroup,
|
|
ulong dspClockStart,
|
|
ulong dspClockEnd
|
|
) => PInvoke.ChannelGroupRemoveFadePoints(channelGroup, dspClockStart, dspClockEnd);
|
|
|
|
/// ChannelGroup::removeFadePoints
|
|
public static void RemoveFadePoints(this ChannelGroup channelGroup, ulong dspClockStart, ulong dspClockEnd) =>
|
|
TryRemoveFadePoints(channelGroup, dspClockStart, dspClockEnd).Check();
|
|
|
|
/// ChannelGroup::getFadePoints
|
|
public static unsafe Result TryGetFadePoints(
|
|
this ChannelGroup channelGroup,
|
|
uint* numPoints,
|
|
ulong* pointDspClock,
|
|
float* pointVolume
|
|
) => PInvoke.ChannelGroupGetFadePoints(channelGroup, numPoints, pointDspClock, pointVolume);
|
|
|
|
/// ChannelGroup::getFadePoints
|
|
public static unsafe void GetFadePoints(
|
|
this ChannelGroup channelGroup,
|
|
uint* numPoints,
|
|
ulong* pointDspClock,
|
|
float* pointVolume
|
|
) => TryGetFadePoints(channelGroup, numPoints, pointDspClock, pointVolume).Check();
|
|
|
|
/// ChannelGroup::getDSP
|
|
public static unsafe Result TryGetDsp(this ChannelGroup channelGroup, int index, out Dsp dsp)
|
|
{
|
|
fixed (Dsp* dspPtr = &dsp)
|
|
return PInvoke.ChannelGroupGetDsp(channelGroup, index, dspPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getDSP
|
|
public static Dsp GetDsp(this ChannelGroup channelGroup, int index)
|
|
{
|
|
TryGetDsp(channelGroup, index, out var dsp).Check();
|
|
return dsp;
|
|
}
|
|
|
|
/// ChannelGroup::addDSP
|
|
public static Result TryAddDsp(this ChannelGroup channelGroup, int index, Dsp dsp) =>
|
|
PInvoke.ChannelGroupAddDsp(channelGroup, index, dsp);
|
|
|
|
/// ChannelGroup::addDSP
|
|
public static void AddDsp(this ChannelGroup channelGroup, int index, Dsp dsp) =>
|
|
TryAddDsp(channelGroup, index, dsp).Check();
|
|
|
|
/// ChannelGroup::removeDSP
|
|
public static Result TryRemoveDsp(this ChannelGroup channelGroup, Dsp dsp) =>
|
|
PInvoke.ChannelGroupRemoveDsp(channelGroup, dsp);
|
|
|
|
/// ChannelGroup::removeDSP
|
|
public static void RemoveDsp(this ChannelGroup channelGroup, Dsp dsp) =>
|
|
TryRemoveDsp(channelGroup, dsp).Check();
|
|
|
|
/// ChannelGroup::getNumDSPs
|
|
public static unsafe Result TryGetNumDsps(this ChannelGroup channelGroup, out int numDsps)
|
|
{
|
|
fixed (int* numDspsPtr = &numDsps)
|
|
return PInvoke.ChannelGroupGetNumDsps(channelGroup, numDspsPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getNumDSPs
|
|
public static int GetNumDsps(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetNumDsps(channelGroup, out var numDsps).Check();
|
|
return numDsps;
|
|
}
|
|
|
|
/// ChannelGroup::setDSPIndex
|
|
public static Result TrySetDspIndex(this ChannelGroup channelGroup, Dsp dsp, int index) =>
|
|
PInvoke.ChannelGroupSetDspIndex(channelGroup, dsp, index);
|
|
|
|
/// ChannelGroup::setDSPIndex
|
|
public static void SetDspIndex(this ChannelGroup channelGroup, Dsp dsp, int index) =>
|
|
TrySetDspIndex(channelGroup, dsp, index).Check();
|
|
|
|
/// ChannelGroup::getDSPIndex
|
|
public static unsafe Result TryGetDspIndex(this ChannelGroup channelGroup, Dsp dsp, out int index)
|
|
{
|
|
fixed (int* indexPtr = &index)
|
|
return PInvoke.ChannelGroupGetDspIndex(channelGroup, dsp, indexPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getDSPIndex
|
|
public static int GetDspIndex(this ChannelGroup channelGroup, Dsp dsp)
|
|
{
|
|
TryGetDspIndex(channelGroup, dsp, out var index).Check();
|
|
return index;
|
|
}
|
|
|
|
/// ChannelGroup::set3DAttributes
|
|
public static unsafe Result TrySet3dAttributes(this ChannelGroup channelGroup, in float3 pos, in float3 vel)
|
|
{
|
|
fixed (float3* posPtr = &pos)
|
|
fixed (float3* velPtr = &vel)
|
|
return PInvoke.ChannelGroupSet3dAttributes(channelGroup, posPtr, velPtr);
|
|
}
|
|
|
|
/// ChannelGroup::set3DAttributes
|
|
public static void Set3dAttributes(this ChannelGroup channelGroup, in float3 pos, in float3 vel) =>
|
|
TrySet3dAttributes(channelGroup, pos, vel).Check();
|
|
|
|
/// ChannelGroup::get3DAttributes
|
|
public static unsafe Result TryGet3dAttributes(this ChannelGroup channelGroup, out float3 pos, out float3 vel)
|
|
{
|
|
fixed (float3* posPtr = &pos)
|
|
fixed (float3* velPtr = &vel)
|
|
return PInvoke.ChannelGroupGet3dAttributes(channelGroup, posPtr, velPtr);
|
|
}
|
|
|
|
/// ChannelGroup::get3DAttributes
|
|
public static void Get3dAttributes(this ChannelGroup channelGroup, out float3 pos, out float3 vel) =>
|
|
TryGet3dAttributes(channelGroup, out pos, out vel).Check();
|
|
|
|
/// ChannelGroup::set3DMinMaxDistance
|
|
public static Result TrySet3dMinMaxDistance(
|
|
this ChannelGroup channelGroup,
|
|
float minDistance,
|
|
float maxDistance
|
|
) => PInvoke.ChannelGroupSet3dMinMaxDistance(channelGroup, minDistance, maxDistance);
|
|
|
|
/// ChannelGroup::set3DMinMaxDistance
|
|
public static void Set3dMinMaxDistance(this ChannelGroup channelGroup, float minDistance, float maxDistance) =>
|
|
TrySet3dMinMaxDistance(channelGroup, minDistance, maxDistance).Check();
|
|
|
|
/// ChannelGroup::get3DMinMaxDistance
|
|
public static unsafe Result TryGet3dMinMaxDistance(
|
|
this ChannelGroup channelGroup,
|
|
out float minDistance,
|
|
out float maxDistance
|
|
)
|
|
{
|
|
fixed (float* minDistancePtr = &minDistance)
|
|
fixed (float* maxDistancePtr = &maxDistance)
|
|
return PInvoke.ChannelGroupGet3dMinMaxDistance(channelGroup, minDistancePtr, maxDistancePtr);
|
|
}
|
|
|
|
/// ChannelGroup::get3DMinMaxDistance
|
|
public static void Get3dMinMaxDistance(
|
|
this ChannelGroup channelGroup,
|
|
out float minDistance,
|
|
out float maxDistance
|
|
) => TryGet3dMinMaxDistance(channelGroup, out minDistance, out maxDistance).Check();
|
|
|
|
/// ChannelGroup::set3DConeSettings
|
|
public static Result TrySet3dConeSettings(
|
|
this ChannelGroup channelGroup,
|
|
float insideConeAngle,
|
|
float outsideConeAngle,
|
|
float outsideVolume
|
|
) => PInvoke.ChannelGroupSet3dConeSettings(channelGroup, insideConeAngle, outsideConeAngle, outsideVolume);
|
|
|
|
/// ChannelGroup::set3DConeSettings
|
|
public static void Set3dConeSettings(
|
|
this ChannelGroup channelGroup,
|
|
float insideConeAngle,
|
|
float outsideConeAngle,
|
|
float outsideVolume
|
|
) => TrySet3dConeSettings(channelGroup, insideConeAngle, outsideConeAngle, outsideVolume).Check();
|
|
|
|
/// ChannelGroup::get3DConeSettings
|
|
public static unsafe Result TryGet3dConeSettings(
|
|
this ChannelGroup channelGroup,
|
|
out float insideConeAngle,
|
|
out float outsideConeAngle,
|
|
out float outsideVolume
|
|
)
|
|
{
|
|
fixed (float* insideConeAnglePtr = &insideConeAngle)
|
|
fixed (float* outsideConeAnglePtr = &outsideConeAngle)
|
|
fixed (float* outsideVolumePtr = &outsideVolume)
|
|
return PInvoke.ChannelGroupGet3dConeSettings(
|
|
channelGroup,
|
|
insideConeAnglePtr,
|
|
outsideConeAnglePtr,
|
|
outsideVolumePtr
|
|
);
|
|
}
|
|
|
|
/// ChannelGroup::get3DConeSettings
|
|
public static void Get3dConeSettings(
|
|
this ChannelGroup channelGroup,
|
|
out float insideConeAngle,
|
|
out float outsideConeAngle,
|
|
out float outsideVolume
|
|
) => TryGet3dConeSettings(channelGroup, out insideConeAngle, out outsideConeAngle, out outsideVolume).Check();
|
|
|
|
/// ChannelGroup::set3DConeOrientation
|
|
public static unsafe Result TrySet3dConeOrientation(this ChannelGroup channelGroup, in float3 orientation)
|
|
{
|
|
fixed (float3* orientationPtr = &orientation)
|
|
return PInvoke.ChannelGroupSet3dConeOrientation(channelGroup, orientationPtr);
|
|
}
|
|
|
|
/// ChannelGroup::set3DConeOrientation
|
|
public static void Set3dConeOrientation(this ChannelGroup channelGroup, in float3 orientation) =>
|
|
TrySet3dConeOrientation(channelGroup, orientation).Check();
|
|
|
|
/// ChannelGroup::get3DConeOrientation
|
|
public static unsafe Result TryGet3dConeOrientation(this ChannelGroup channelGroup, out float3 orientation)
|
|
{
|
|
fixed (float3* orientationPtr = &orientation)
|
|
return PInvoke.ChannelGroupGet3dConeOrientation(channelGroup, orientationPtr);
|
|
}
|
|
|
|
/// ChannelGroup::get3DConeOrientation
|
|
public static float3 Get3dConeOrientation(this ChannelGroup channelGroup)
|
|
{
|
|
TryGet3dConeOrientation(channelGroup, out var orientation).Check();
|
|
return orientation;
|
|
}
|
|
|
|
/// ChannelGroup::set3DCustomRolloff
|
|
public static unsafe Result TrySet3dCustomRolloff(
|
|
this ChannelGroup channelGroup,
|
|
float3* points,
|
|
int numPoints
|
|
) => PInvoke.ChannelGroupSet3dCustomRolloff(channelGroup, points, numPoints);
|
|
|
|
/// ChannelGroup::set3DCustomRolloff
|
|
public static unsafe void Set3dCustomRolloff(this ChannelGroup channelGroup, float3* points, int numPoints) =>
|
|
TrySet3dCustomRolloff(channelGroup, points, numPoints).Check();
|
|
|
|
/// ChannelGroup::get3DCustomRolloff
|
|
public static unsafe Result TryGet3dCustomRolloff(
|
|
this ChannelGroup channelGroup,
|
|
out float3* points,
|
|
out int numPoints
|
|
)
|
|
{
|
|
fixed (float3** pointsPtr = &points)
|
|
fixed (int* numPointsPtr = &numPoints)
|
|
return PInvoke.ChannelGroupGet3dCustomRolloff(channelGroup, pointsPtr, numPointsPtr);
|
|
}
|
|
|
|
/// ChannelGroup::get3DCustomRolloff
|
|
public static unsafe void Get3dCustomRolloff(
|
|
this ChannelGroup channelGroup,
|
|
out float3* points,
|
|
out int numPoints
|
|
) => TryGet3dCustomRolloff(channelGroup, out points, out numPoints).Check();
|
|
|
|
/// ChannelGroup::set3DOcclusion
|
|
public static Result TrySet3dOcclusion(
|
|
this ChannelGroup channelGroup,
|
|
float directOcclusion,
|
|
float reverbOcclusion
|
|
) => PInvoke.ChannelGroupSet3dOcclusion(channelGroup, directOcclusion, reverbOcclusion);
|
|
|
|
/// ChannelGroup::set3DOcclusion
|
|
public static void Set3dOcclusion(
|
|
this ChannelGroup channelGroup,
|
|
float directOcclusion,
|
|
float reverbOcclusion
|
|
) => TrySet3dOcclusion(channelGroup, directOcclusion, reverbOcclusion).Check();
|
|
|
|
/// ChannelGroup::get3DOcclusion
|
|
public static unsafe Result TryGet3dOcclusion(
|
|
this ChannelGroup channelGroup,
|
|
out float directOcclusion,
|
|
out float reverbOcclusion
|
|
)
|
|
{
|
|
fixed (float* directOcclusionPtr = &directOcclusion)
|
|
fixed (float* reverbOcclusionPtr = &reverbOcclusion)
|
|
return PInvoke.ChannelGroupGet3dOcclusion(channelGroup, directOcclusionPtr, reverbOcclusionPtr);
|
|
}
|
|
|
|
/// ChannelGroup::get3DOcclusion
|
|
public static void Get3dOcclusion(
|
|
this ChannelGroup channelGroup,
|
|
out float directOcclusion,
|
|
out float reverbOcclusion
|
|
) => TryGet3dOcclusion(channelGroup, out directOcclusion, out reverbOcclusion).Check();
|
|
|
|
/// ChannelGroup::set3DSpread
|
|
public static Result TrySet3dSpread(this ChannelGroup channelGroup, float angle) =>
|
|
PInvoke.ChannelGroupSet3dSpread(channelGroup, angle);
|
|
|
|
/// ChannelGroup::set3DSpread
|
|
public static void Set3dSpread(this ChannelGroup channelGroup, float angle) =>
|
|
TrySet3dSpread(channelGroup, angle).Check();
|
|
|
|
/// ChannelGroup::get3DSpread
|
|
public static unsafe Result TryGet3dSpread(this ChannelGroup channelGroup, out float angle)
|
|
{
|
|
fixed (float* anglePtr = &angle)
|
|
return PInvoke.ChannelGroupGet3dSpread(channelGroup, anglePtr);
|
|
}
|
|
|
|
/// ChannelGroup::get3DSpread
|
|
public static float Get3dSpread(this ChannelGroup channelGroup)
|
|
{
|
|
TryGet3dSpread(channelGroup, out var angle).Check();
|
|
return angle;
|
|
}
|
|
|
|
/// ChannelGroup::set3DLevel
|
|
public static Result TrySet3dLevel(this ChannelGroup channelGroup, float level) =>
|
|
PInvoke.ChannelGroupSet3dLevel(channelGroup, level);
|
|
|
|
/// ChannelGroup::set3DLevel
|
|
public static void Set3dLevel(this ChannelGroup channelGroup, float level) =>
|
|
TrySet3dLevel(channelGroup, level).Check();
|
|
|
|
/// ChannelGroup::get3DLevel
|
|
public static unsafe Result TryGet3dLevel(this ChannelGroup channelGroup, out float level)
|
|
{
|
|
fixed (float* levelPtr = &level)
|
|
return PInvoke.ChannelGroupGet3dLevel(channelGroup, levelPtr);
|
|
}
|
|
|
|
/// ChannelGroup::get3DLevel
|
|
public static float Get3dLevel(this ChannelGroup channelGroup)
|
|
{
|
|
TryGet3dLevel(channelGroup, out var level).Check();
|
|
return level;
|
|
}
|
|
|
|
/// ChannelGroup::set3DDopplerLevel
|
|
public static Result TrySet3dDopplerLevel(this ChannelGroup channelGroup, float level) =>
|
|
PInvoke.ChannelGroupSet3dDopplerLevel(channelGroup, level);
|
|
|
|
/// ChannelGroup::set3DDopplerLevel
|
|
public static void Set3dDopplerLevel(this ChannelGroup channelGroup, float level) =>
|
|
TrySet3dDopplerLevel(channelGroup, level).Check();
|
|
|
|
/// ChannelGroup::get3DDopplerLevel
|
|
public static unsafe Result TryGet3dDopplerLevel(this ChannelGroup channelGroup, out float level)
|
|
{
|
|
fixed (float* levelPtr = &level)
|
|
return PInvoke.ChannelGroupGet3dDopplerLevel(channelGroup, levelPtr);
|
|
}
|
|
|
|
/// ChannelGroup::get3DDopplerLevel
|
|
public static float Get3dDopplerLevel(this ChannelGroup channelGroup)
|
|
{
|
|
TryGet3dDopplerLevel(channelGroup, out var level).Check();
|
|
return level;
|
|
}
|
|
|
|
/// ChannelGroup::set3DDistanceFilter
|
|
public static Result TrySet3dDistanceFilter(
|
|
this ChannelGroup channelGroup,
|
|
Bool32 custom,
|
|
float customLevel,
|
|
float centerFreq
|
|
) => PInvoke.ChannelGroupSet3dDistanceFilter(channelGroup, custom, customLevel, centerFreq);
|
|
|
|
/// ChannelGroup::set3DDistanceFilter
|
|
public static void Set3dDistanceFilter(
|
|
this ChannelGroup channelGroup,
|
|
Bool32 custom,
|
|
float customLevel,
|
|
float centerFreq
|
|
) => TrySet3dDistanceFilter(channelGroup, custom, customLevel, centerFreq).Check();
|
|
|
|
/// ChannelGroup::get3DDistanceFilter
|
|
public static unsafe Result TryGet3dDistanceFilter(
|
|
this ChannelGroup channelGroup,
|
|
out Bool32 custom,
|
|
out float customLevel,
|
|
out float centerFreq
|
|
)
|
|
{
|
|
fixed (Bool32* customPtr = &custom)
|
|
fixed (float* customLevelPtr = &customLevel)
|
|
fixed (float* centerFreqPtr = ¢erFreq)
|
|
return PInvoke.ChannelGroupGet3dDistanceFilter(channelGroup, customPtr, customLevelPtr, centerFreqPtr);
|
|
}
|
|
|
|
/// ChannelGroup::get3DDistanceFilter
|
|
public static void Get3dDistanceFilter(
|
|
this ChannelGroup channelGroup,
|
|
out Bool32 custom,
|
|
out float customLevel,
|
|
out float centerFreq
|
|
) => TryGet3dDistanceFilter(channelGroup, out custom, out customLevel, out centerFreq).Check();
|
|
|
|
/// ChannelGroup::setUserData
|
|
public static Result TrySetUserData(this ChannelGroup channelGroup, nint userData) =>
|
|
PInvoke.ChannelGroupSetUserData(channelGroup, userData);
|
|
|
|
/// ChannelGroup::setUserData
|
|
public static void SetUserData(this ChannelGroup channelGroup, nint userData) =>
|
|
TrySetUserData(channelGroup, userData).Check();
|
|
|
|
/// ChannelGroup::getUserData
|
|
public static unsafe Result TryGetUserData(this ChannelGroup channelGroup, out nint userData)
|
|
{
|
|
fixed (nint* userDataPtr = &userData)
|
|
return PInvoke.ChannelGroupGetUserData(channelGroup, userDataPtr);
|
|
}
|
|
|
|
/// ChannelGroup::getUserData
|
|
public static nint GetUserData(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetUserData(channelGroup, out var userData).Check();
|
|
return userData;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Frees the memory for the group.
|
|
/// </para>
|
|
/// <para>
|
|
/// Any Channels or ChannelGroups feeding into this group are moved to the master ChannelGroup.
|
|
/// </para>
|
|
/// <para>
|
|
/// <b>See Also:</b> System::createChannelGroup, System::getMasterChannelGroup
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_release">ChannelGroup::release</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Result TryRelease(this ChannelGroup channelGroup) => PInvoke.ChannelGroupRelease(channelGroup);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Frees the memory for the group.
|
|
/// </para>
|
|
/// <para>
|
|
/// Any Channels or ChannelGroups feeding into this group are moved to the master ChannelGroup.
|
|
/// </para>
|
|
/// <para>
|
|
/// <b>See Also:</b> System::createChannelGroup, System::getMasterChannelGroup
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_release">ChannelGroup::release</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static void Release(this ChannelGroup channelGroup) => TryRelease(channelGroup).Check();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Adds a ChannelGroup as an input to this group.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_addgroup">ChannelGroup::addGroup</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryAddGroup(
|
|
this ChannelGroup channelGroup,
|
|
ChannelGroup group,
|
|
Bool32 propagateDspClock,
|
|
out DspConnection connection
|
|
)
|
|
{
|
|
fixed (DspConnection* connectionPtr = &connection)
|
|
return PInvoke.ChannelGroupAddGroup(channelGroup, group, propagateDspClock, connectionPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Adds a ChannelGroup as an input to this group.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_addgroup">ChannelGroup::addGroup</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static DspConnection AddGroup(
|
|
this ChannelGroup channelGroup,
|
|
ChannelGroup group,
|
|
Bool32 propagateDspClock
|
|
)
|
|
{
|
|
TryAddGroup(channelGroup, group, propagateDspClock, out var connection).Check();
|
|
return connection;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the number of ChannelGroups that feed into to this group.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getnumgroups">ChannelGroup::getNumGroups</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetNumGroups(this ChannelGroup channelGroup, out int numGroups)
|
|
{
|
|
fixed (int* numGroupsPtr = &numGroups)
|
|
return PInvoke.ChannelGroupGetNumGroups(channelGroup, numGroupsPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the number of ChannelGroups that feed into to this group.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getnumgroups">ChannelGroup::getNumGroups</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static int GetNumGroups(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetNumGroups(channelGroup, out var numGroups).Check();
|
|
return numGroups;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the ChannelGroup at the specified index in the list of group inputs.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getgroup">ChannelGroup::getGroup</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetGroup(this ChannelGroup channelGroup, int index, out ChannelGroup group)
|
|
{
|
|
fixed (ChannelGroup* groupPtr = &group)
|
|
return PInvoke.ChannelGroupGetGroup(channelGroup, index, groupPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the ChannelGroup at the specified index in the list of group inputs.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getgroup">ChannelGroup::getGroup</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static ChannelGroup GetGroup(this ChannelGroup channelGroup, int index)
|
|
{
|
|
TryGetGroup(channelGroup, index, out var group).Check();
|
|
return group;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the ChannelGroup this object outputs to.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getparentgroup">ChannelGroup::getParentGroup</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetParentGroup(this ChannelGroup channelGroup, out ChannelGroup group)
|
|
{
|
|
fixed (ChannelGroup* groupPtr = &group)
|
|
return PInvoke.ChannelGroupGetParentGroup(channelGroup, groupPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the ChannelGroup this object outputs to.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getparentgroup">ChannelGroup::getParentGroup</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static ChannelGroup GetParentGroup(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetParentGroup(channelGroup, out var group).Check();
|
|
return group;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the name set when the group was created.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getname">ChannelGroup::getName</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetName(this ChannelGroup channelGroup, byte* name, int nameLen) =>
|
|
PInvoke.ChannelGroupGetName(channelGroup, name, nameLen);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the name set when the group was created.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getname">ChannelGroup::getName</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void GetName(this ChannelGroup channelGroup, byte* name, int nameLen) =>
|
|
TryGetName(channelGroup, name, nameLen).Check();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the number of Channels that feed into to this group.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getnumchannels">ChannelGroup::getNumChannels</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetNumChannels(this ChannelGroup channelGroup, out int numChannels)
|
|
{
|
|
fixed (int* numChannelsPtr = &numChannels)
|
|
return PInvoke.ChannelGroupGetNumChannels(channelGroup, numChannelsPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the number of Channels that feed into to this group.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getnumchannels">ChannelGroup::getNumChannels</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static int GetNumChannels(this ChannelGroup channelGroup)
|
|
{
|
|
TryGetNumChannels(channelGroup, out var numChannels).Check();
|
|
return numChannels;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the Channel at the specified index in the list of Channel inputs.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getchannel">ChannelGroup::getChannel</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetChannel(this ChannelGroup channelGroup, int index, out Channel channel)
|
|
{
|
|
fixed (Channel* channelPtr = &channel)
|
|
return PInvoke.ChannelGroupGetChannel(channelGroup, index, channelPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the Channel at the specified index in the list of Channel inputs.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-channelgroup.html#channelgroup_getchannel">ChannelGroup::getChannel</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Channel GetChannel(this ChannelGroup channelGroup, int index)
|
|
{
|
|
TryGetChannel(channelGroup, index, out var channel).Check();
|
|
return channel;
|
|
}
|
|
}
|
|
}
|