mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
1023 lines
42 KiB
C#
1023 lines
42 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Fmod.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.FmodApi.Studio
|
|
{
|
|
public static partial class FmodStudio
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Checks that the EventDescription reference is valid.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_isvalid">Studio::EventDescription::isValid</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Bool32 IsValid(this EventDescription eventDescription) =>
|
|
PInvoke.EventDescriptionIsValid(eventDescription);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the GUID associated with the event.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getid">Studio::EventDescription::getID</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetId(this EventDescription eventDescription, out Guid id)
|
|
{
|
|
fixed (Guid* idPtr = &id)
|
|
return PInvoke.EventDescriptionGetId(eventDescription, idPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the GUID associated with the event.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getid">Studio::EventDescription::getID</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Guid GetId(this EventDescription eventDescription)
|
|
{
|
|
TryGetId(eventDescription, out var id).Check();
|
|
return id;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the path.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getpath">Studio::EventDescription::getPath</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetPath(
|
|
this EventDescription eventDescription,
|
|
byte* path,
|
|
int size,
|
|
out int retrieved
|
|
)
|
|
{
|
|
fixed (int* retrievedPtr = &retrieved)
|
|
return PInvoke.EventDescriptionGetPath(eventDescription, path, size, retrievedPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the path.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getpath">Studio::EventDescription::getPath</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe int GetPath(this EventDescription eventDescription, byte* path, int size)
|
|
{
|
|
TryGetPath(eventDescription, path, size, out var retrieved).Check();
|
|
return retrieved;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the number of parameters in the event.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptioncount">Studio::EventDescription::getParameterDescriptionCount</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetParameterDescriptionCount(
|
|
this EventDescription eventDescription,
|
|
out int count
|
|
)
|
|
{
|
|
fixed (int* countPtr = &count)
|
|
return PInvoke.EventDescriptionGetParameterDescriptionCount(eventDescription, countPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the number of parameters in the event.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptioncount">Studio::EventDescription::getParameterDescriptionCount</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static int GetParameterDescriptionCount(this EventDescription eventDescription)
|
|
{
|
|
TryGetParameterDescriptionCount(eventDescription, out var count).Check();
|
|
return count;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter description by index.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptionbyindex">Studio::EventDescription::getParameterDescriptionByIndex</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetParameterDescriptionByIndex(
|
|
this EventDescription eventDescription,
|
|
int index,
|
|
out ParameterDescription parameter
|
|
)
|
|
{
|
|
fixed (ParameterDescription* parameterPtr = ¶meter)
|
|
return PInvoke.EventDescriptionGetParameterDescriptionByIndex(eventDescription, index, parameterPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter description by index.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptionbyindex">Studio::EventDescription::getParameterDescriptionByIndex</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static ParameterDescription GetParameterDescriptionByIndex(
|
|
this EventDescription eventDescription,
|
|
int index
|
|
)
|
|
{
|
|
TryGetParameterDescriptionByIndex(eventDescription, index, out var parameter).Check();
|
|
return parameter;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter description by name, including the path if needed.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptionbyname">Studio::EventDescription::getParameterDescriptionByName</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetParameterDescriptionByName(
|
|
this EventDescription eventDescription,
|
|
RefString8 name,
|
|
out ParameterDescription parameter
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
fixed (ParameterDescription* parameterPtr = ¶meter)
|
|
return PInvoke.EventDescriptionGetParameterDescriptionByName(eventDescription, namePtr, parameterPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter description by name, including the path if needed.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptionbyname">Studio::EventDescription::getParameterDescriptionByName</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static ParameterDescription GetParameterDescriptionByName(
|
|
this EventDescription eventDescription,
|
|
RefString8 name
|
|
)
|
|
{
|
|
TryGetParameterDescriptionByName(eventDescription, name, out var parameter).Check();
|
|
return parameter;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter description by id.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptionbyid">Studio::EventDescription::getParameterDescriptionByID</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetParameterDescriptionById(
|
|
this EventDescription eventDescription,
|
|
ParameterId id,
|
|
out ParameterDescription parameter
|
|
)
|
|
{
|
|
fixed (ParameterDescription* parameterPtr = ¶meter)
|
|
return PInvoke.EventDescriptionGetParameterDescriptionById(eventDescription, id, parameterPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter description by id.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterdescriptionbyid">Studio::EventDescription::getParameterDescriptionByID</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static ParameterDescription GetParameterDescriptionById(
|
|
this EventDescription eventDescription,
|
|
ParameterId id
|
|
)
|
|
{
|
|
TryGetParameterDescriptionById(eventDescription, id, out var parameter).Check();
|
|
return parameter;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter label by index.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterlabelbyindex">Studio::EventDescription::getParameterLabelByIndex</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetParameterLabelByIndex(
|
|
this EventDescription eventDescription,
|
|
int index,
|
|
int labelIndex,
|
|
byte* label,
|
|
int size,
|
|
out int retrieved
|
|
)
|
|
{
|
|
fixed (int* retrievedPtr = &retrieved)
|
|
return PInvoke.EventDescriptionGetParameterLabelByIndex(
|
|
eventDescription,
|
|
index,
|
|
labelIndex,
|
|
label,
|
|
size,
|
|
retrievedPtr
|
|
);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter label by index.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterlabelbyindex">Studio::EventDescription::getParameterLabelByIndex</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe int GetParameterLabelByIndex(
|
|
this EventDescription eventDescription,
|
|
int index,
|
|
int labelIndex,
|
|
byte* label,
|
|
int size
|
|
)
|
|
{
|
|
TryGetParameterLabelByIndex(eventDescription, index, labelIndex, label, size, out var retrieved).Check();
|
|
return retrieved;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter label by name, including the path if needed.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterlabelbyname">Studio::EventDescription::getParameterLabelByName</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetParameterLabelByName(
|
|
this EventDescription eventDescription,
|
|
RefString8 name,
|
|
int labelIndex,
|
|
byte* label,
|
|
int size,
|
|
out int retrieved
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
fixed (int* retrievedPtr = &retrieved)
|
|
return PInvoke.EventDescriptionGetParameterLabelByName(
|
|
eventDescription,
|
|
namePtr,
|
|
labelIndex,
|
|
label,
|
|
size,
|
|
retrievedPtr
|
|
);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter label by name, including the path if needed.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterlabelbyname">Studio::EventDescription::getParameterLabelByName</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe int GetParameterLabelByName(
|
|
this EventDescription eventDescription,
|
|
RefString8 name,
|
|
int labelIndex,
|
|
byte* label,
|
|
int size
|
|
)
|
|
{
|
|
TryGetParameterLabelByName(eventDescription, name, labelIndex, label, size, out var retrieved).Check();
|
|
return retrieved;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter label by ID.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterlabelbyid">Studio::EventDescription::getParameterLabelByID</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetParameterLabelById(
|
|
this EventDescription eventDescription,
|
|
ParameterId id,
|
|
int labelIndex,
|
|
byte* label,
|
|
int size,
|
|
out int retrieved
|
|
)
|
|
{
|
|
fixed (int* retrievedPtr = &retrieved)
|
|
return PInvoke.EventDescriptionGetParameterLabelById(
|
|
eventDescription,
|
|
id,
|
|
labelIndex,
|
|
label,
|
|
size,
|
|
retrievedPtr
|
|
);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves an event parameter label by ID.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getparameterlabelbyid">Studio::EventDescription::getParameterLabelByID</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe int GetParameterLabelById(
|
|
this EventDescription eventDescription,
|
|
ParameterId id,
|
|
int labelIndex,
|
|
byte* label,
|
|
int size
|
|
)
|
|
{
|
|
TryGetParameterLabelById(eventDescription, id, labelIndex, label, size, out var retrieved).Check();
|
|
return retrieved;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the number of user properties attached to the event.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getuserpropertycount">Studio::EventDescription::getUserPropertyCount</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetUserPropertyCount(this EventDescription eventDescription, out int count)
|
|
{
|
|
fixed (int* countPtr = &count)
|
|
return PInvoke.EventDescriptionGetUserPropertyCount(eventDescription, countPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the number of user properties attached to the event.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getuserpropertycount">Studio::EventDescription::getUserPropertyCount</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static int GetUserPropertyCount(this EventDescription eventDescription)
|
|
{
|
|
TryGetUserPropertyCount(eventDescription, out var count).Check();
|
|
return count;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves a user property by index.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getuserpropertybyindex">Studio::EventDescription::getUserPropertyByIndex</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetUserPropertyByIndex(
|
|
this EventDescription eventDescription,
|
|
int index,
|
|
out UserProperty property
|
|
)
|
|
{
|
|
fixed (UserProperty* propertyPtr = &property)
|
|
return PInvoke.EventDescriptionGetUserPropertyByIndex(eventDescription, index, propertyPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves a user property by index.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getuserpropertybyindex">Studio::EventDescription::getUserPropertyByIndex</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static UserProperty GetUserPropertyByIndex(this EventDescription eventDescription, int index)
|
|
{
|
|
TryGetUserPropertyByIndex(eventDescription, index, out var property).Check();
|
|
return property;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves a user property by name.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getuserproperty">Studio::EventDescription::getUserProperty</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetUserProperty(
|
|
this EventDescription eventDescription,
|
|
RefString8 name,
|
|
out UserProperty property
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
fixed (UserProperty* propertyPtr = &property)
|
|
return PInvoke.EventDescriptionGetUserProperty(eventDescription, namePtr, propertyPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves a user property by name.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getuserproperty">Studio::EventDescription::getUserProperty</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static UserProperty GetUserProperty(this EventDescription eventDescription, RefString8 name)
|
|
{
|
|
TryGetUserProperty(eventDescription, name, out var property).Check();
|
|
return property;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the length of the timeline.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getlength">Studio::EventDescription::getLength</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetLength(this EventDescription eventDescription, out int length)
|
|
{
|
|
fixed (int* lengthPtr = &length)
|
|
return PInvoke.EventDescriptionGetLength(eventDescription, lengthPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the length of the timeline.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getlength">Studio::EventDescription::getLength</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static int GetLength(this EventDescription eventDescription)
|
|
{
|
|
TryGetLength(eventDescription, out var length).Check();
|
|
return length;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the minimum and maximum distances for 3D attenuation.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getminmaxdistance">Studio::EventDescription::getMinMaxDistance</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetMinMaxDistance(
|
|
this EventDescription eventDescription,
|
|
out float min,
|
|
out float max
|
|
)
|
|
{
|
|
fixed (float* minPtr = &min)
|
|
fixed (float* maxPtr = &max)
|
|
return PInvoke.EventDescriptionGetMinMaxDistance(eventDescription, minPtr, maxPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the minimum and maximum distances for 3D attenuation.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getminmaxdistance">Studio::EventDescription::getMinMaxDistance</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static void GetMinMaxDistance(this EventDescription eventDescription, out float min, out float max) =>
|
|
TryGetMinMaxDistance(eventDescription, out min, out max).Check();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the sound size for 3D panning.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getsoundsize">Studio::EventDescription::getSoundSize</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetSoundSize(this EventDescription eventDescription, out float size)
|
|
{
|
|
fixed (float* sizePtr = &size)
|
|
return PInvoke.EventDescriptionGetSoundSize(eventDescription, sizePtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the sound size for 3D panning.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getsoundsize">Studio::EventDescription::getSoundSize</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static float GetSoundSize(this EventDescription eventDescription)
|
|
{
|
|
TryGetSoundSize(eventDescription, out var size).Check();
|
|
return size;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event's snapshot status.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_issnapshot">Studio::EventDescription::isSnapshot</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryIsSnapshot(this EventDescription eventDescription, out Bool32 snapshot)
|
|
{
|
|
fixed (Bool32* snapshotPtr = &snapshot)
|
|
return PInvoke.EventDescriptionIsSnapshot(eventDescription, snapshotPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event's snapshot status.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_issnapshot">Studio::EventDescription::isSnapshot</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Bool32 IsSnapshot(this EventDescription eventDescription)
|
|
{
|
|
TryIsSnapshot(eventDescription, out var snapshot).Check();
|
|
return snapshot;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event's oneshot status.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_isoneshot">Studio::EventDescription::isOneshot</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryIsOneshot(this EventDescription eventDescription, out Bool32 oneshot)
|
|
{
|
|
fixed (Bool32* oneshotPtr = &oneshot)
|
|
return PInvoke.EventDescriptionIsOneshot(eventDescription, oneshotPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event's oneshot status.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_isoneshot">Studio::EventDescription::isOneshot</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Bool32 IsOneshot(this EventDescription eventDescription)
|
|
{
|
|
TryIsOneshot(eventDescription, out var oneshot).Check();
|
|
return oneshot;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event's stream status.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_isstream">Studio::EventDescription::isStream</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryIsStream(this EventDescription eventDescription, out Bool32 isStream)
|
|
{
|
|
fixed (Bool32* isStreamPtr = &isStream)
|
|
return PInvoke.EventDescriptionIsStream(eventDescription, isStreamPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event's stream status.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_isstream">Studio::EventDescription::isStream</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Bool32 IsStream(this EventDescription eventDescription)
|
|
{
|
|
TryIsStream(eventDescription, out var isStream).Check();
|
|
return isStream;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event's 3D status.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_is3d">Studio::EventDescription::is3D</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryIs3d(this EventDescription eventDescription, out Bool32 is3d)
|
|
{
|
|
fixed (Bool32* is3dPtr = &is3d)
|
|
return PInvoke.EventDescriptionIs3d(eventDescription, is3dPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event's 3D status.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_is3d">Studio::EventDescription::is3D</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Bool32 Is3d(this EventDescription eventDescription)
|
|
{
|
|
TryIs3d(eventDescription, out var is3d).Check();
|
|
return is3d;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event's doppler status.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_isdopplerenabled">Studio::EventDescription::isDopplerEnabled</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryIsDopplerEnabled(this EventDescription eventDescription, out Bool32 doppler)
|
|
{
|
|
fixed (Bool32* dopplerPtr = &doppler)
|
|
return PInvoke.EventDescriptionIsDopplerEnabled(eventDescription, dopplerPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event's doppler status.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_isdopplerenabled">Studio::EventDescription::isDopplerEnabled</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Bool32 IsDopplerEnabled(this EventDescription eventDescription)
|
|
{
|
|
TryIsDopplerEnabled(eventDescription, out var doppler).Check();
|
|
return doppler;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves whether the event has any sustain points.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_hassustainpoint">Studio::EventDescription::hasSustainPoint</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryHasSustainPoint(this EventDescription eventDescription, out Bool32 sustainPoint)
|
|
{
|
|
fixed (Bool32* sustainPointPtr = &sustainPoint)
|
|
return PInvoke.EventDescriptionHasSustainPoint(eventDescription, sustainPointPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves whether the event has any sustain points.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_hassustainpoint">Studio::EventDescription::hasSustainPoint</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Bool32 HasSustainPoint(this EventDescription eventDescription)
|
|
{
|
|
TryHasSustainPoint(eventDescription, out var sustainPoint).Check();
|
|
return sustainPoint;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Creates a playable instance.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_createinstance">Studio::EventDescription::createInstance</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryCreateInstance(
|
|
this EventDescription eventDescription,
|
|
out EventInstance instance
|
|
)
|
|
{
|
|
fixed (EventInstance* instancePtr = &instance)
|
|
return PInvoke.EventDescriptionCreateInstance(eventDescription, instancePtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Creates a playable instance.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_createinstance">Studio::EventDescription::createInstance</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static EventInstance CreateInstance(this EventDescription eventDescription)
|
|
{
|
|
TryCreateInstance(eventDescription, out var instance).Check();
|
|
return instance;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the number of instances.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getinstancecount">Studio::EventDescription::getInstanceCount</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetInstanceCount(this EventDescription eventDescription, out int count)
|
|
{
|
|
fixed (int* countPtr = &count)
|
|
return PInvoke.EventDescriptionGetInstanceCount(eventDescription, countPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the number of instances.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getinstancecount">Studio::EventDescription::getInstanceCount</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static int GetInstanceCount(this EventDescription eventDescription)
|
|
{
|
|
TryGetInstanceCount(eventDescription, out var count).Check();
|
|
return count;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves a list of the instances.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getinstancelist">Studio::EventDescription::getInstanceList</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetInstanceList(
|
|
this EventDescription eventDescription,
|
|
out EventInstance array,
|
|
int capacity,
|
|
out int count
|
|
)
|
|
{
|
|
fixed (EventInstance* arrayPtr = &array)
|
|
fixed (int* countPtr = &count)
|
|
return PInvoke.EventDescriptionGetInstanceList(eventDescription, arrayPtr, capacity, countPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves a list of the instances.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getinstancelist">Studio::EventDescription::getInstanceList</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static void GetInstanceList(
|
|
this EventDescription eventDescription,
|
|
out EventInstance array,
|
|
int capacity,
|
|
out int count
|
|
) => TryGetInstanceList(eventDescription, out array, capacity, out count).Check();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Loads non-streaming sample data used by the event.
|
|
/// </para>
|
|
/// <para>
|
|
/// This function will load all non-streaming sample data required by the event and any referenced events.
|
|
/// </para>
|
|
/// <para>
|
|
/// Sample data is loaded asynchronously, Studio::EventDescription::getSampleLoadingState may be used to
|
|
/// poll the loading state.
|
|
/// </para>
|
|
/// <para>
|
|
/// <b>See Also:</b> Studio::EventDescription::unloadSampleData, Sample Data Loading
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_loadsampledata">Studio::EventDescription::loadSampleData</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Result TryLoadSampleData(this EventDescription eventDescription) =>
|
|
PInvoke.EventDescriptionLoadSampleData(eventDescription);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Loads non-streaming sample data used by the event.
|
|
/// </para>
|
|
/// <para>
|
|
/// This function will load all non-streaming sample data required by the event and any referenced events.
|
|
/// </para>
|
|
/// <para>
|
|
/// Sample data is loaded asynchronously, Studio::EventDescription::getSampleLoadingState may be used to
|
|
/// poll the loading state.
|
|
/// </para>
|
|
/// <para>
|
|
/// <b>See Also:</b> Studio::EventDescription::unloadSampleData, Sample Data Loading
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_loadsampledata">Studio::EventDescription::loadSampleData</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static void LoadSampleData(this EventDescription eventDescription) =>
|
|
TryLoadSampleData(eventDescription).Check();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Unloads all non-streaming sample data.
|
|
/// </para>
|
|
/// <para>
|
|
/// Sample data will not be unloaded until all instances of the event are released.
|
|
/// </para>
|
|
/// <para>
|
|
/// <b>See Also:</b> Studio::EventDescription::loadSampleData, Sample Data Loading
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_unloadsampledata">Studio::EventDescription::unloadSampleData</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Result TryUnloadSampleData(this EventDescription eventDescription) =>
|
|
PInvoke.EventDescriptionUnloadSampleData(eventDescription);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Unloads all non-streaming sample data.
|
|
/// </para>
|
|
/// <para>
|
|
/// Sample data will not be unloaded until all instances of the event are released.
|
|
/// </para>
|
|
/// <para>
|
|
/// <b>See Also:</b> Studio::EventDescription::loadSampleData, Sample Data Loading
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_unloadsampledata">Studio::EventDescription::unloadSampleData</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static void UnloadSampleData(this EventDescription eventDescription) =>
|
|
TryUnloadSampleData(eventDescription).Check();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the sample data loading state.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getsampleloadingstate">Studio::EventDescription::getSampleLoadingState</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetSampleLoadingState(
|
|
this EventDescription eventDescription,
|
|
out LoadingState state
|
|
)
|
|
{
|
|
fixed (LoadingState* statePtr = &state)
|
|
return PInvoke.EventDescriptionGetSampleLoadingState(eventDescription, statePtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the sample data loading state.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getsampleloadingstate">Studio::EventDescription::getSampleLoadingState</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static LoadingState GetSampleLoadingState(this EventDescription eventDescription)
|
|
{
|
|
TryGetSampleLoadingState(eventDescription, out var state).Check();
|
|
return state;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Releases all instances.
|
|
/// </para>
|
|
/// <para>
|
|
/// This function immediately stops and releases all instances of the event.
|
|
/// </para>
|
|
/// <para>
|
|
/// <b>See Also:</b> Studio::EventInstance::release
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_releaseallinstances">Studio::EventDescription::releaseAllInstances</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Result TryReleaseAllInstances(this EventDescription eventDescription) =>
|
|
PInvoke.EventDescriptionReleaseAllInstances(eventDescription);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Releases all instances.
|
|
/// </para>
|
|
/// <para>
|
|
/// This function immediately stops and releases all instances of the event.
|
|
/// </para>
|
|
/// <para>
|
|
/// <b>See Also:</b> Studio::EventInstance::release
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_releaseallinstances">Studio::EventDescription::releaseAllInstances</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static void ReleaseAllInstances(this EventDescription eventDescription) =>
|
|
TryReleaseAllInstances(eventDescription).Check();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Sets the user callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_setcallback">Studio::EventDescription::setCallback</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Result TrySetCallback(
|
|
this EventDescription eventDescription,
|
|
EventCallbackPtr callback,
|
|
EventCallbackType callbackMask
|
|
) => PInvoke.EventDescriptionSetCallback(eventDescription, callback, callbackMask);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Sets the user callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_setcallback">Studio::EventDescription::setCallback</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static void SetCallback(
|
|
this EventDescription eventDescription,
|
|
EventCallbackPtr callback,
|
|
EventCallbackType callbackMask
|
|
) => TrySetCallback(eventDescription, callback, callbackMask).Check();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event user data.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getuserdata">Studio::EventDescription::getUserData</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryGetUserData(this EventDescription eventDescription, out nint userData)
|
|
{
|
|
fixed (nint* userDataPtr = &userData)
|
|
return PInvoke.EventDescriptionGetUserData(eventDescription, userDataPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieves the event user data.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_getuserdata">Studio::EventDescription::getUserData</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static nint GetUserData(this EventDescription eventDescription)
|
|
{
|
|
TryGetUserData(eventDescription, out var userData).Check();
|
|
return userData;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Sets the event user data.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_setuserdata">Studio::EventDescription::setUserData</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Result TrySetUserData(this EventDescription eventDescription, nint userData) =>
|
|
PInvoke.EventDescriptionSetUserData(eventDescription, userData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Sets the event user data.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventdescription.html#studio_eventdescription_setuserdata">Studio::EventDescription::setUserData</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static void SetUserData(this EventDescription eventDescription, nint userData) =>
|
|
TrySetUserData(eventDescription, userData).Check();
|
|
}
|
|
}
|