// // Generated by Brutal.Fmod.Generate; do not edit by hand. #nullable enable namespace Brutal.FmodApi.Studio { public static partial class FmodStudio { /// /// /// Checks that the EventInstance reference is valid. /// /// /// Studio::EventInstance::isValid /// /// public static Bool32 IsValid(this EventInstance eventInstance) => PInvoke.EventInstanceIsValid(eventInstance); /// /// /// Retrieves the event description. /// /// /// Studio::EventInstance::getDescription /// /// public static unsafe Result TryGetDescription( this EventInstance eventInstance, out EventDescription description ) { fixed (EventDescription* descriptionPtr = &description) return PInvoke.EventInstanceGetDescription(eventInstance, descriptionPtr); } /// /// /// Retrieves the event description. /// /// /// Studio::EventInstance::getDescription /// /// public static EventDescription GetDescription(this EventInstance eventInstance) { TryGetDescription(eventInstance, out var description).Check(); return description; } /// /// /// Retrieves the FMOD Studio System. /// /// /// Studio::EventInstance::getSystem /// /// public static unsafe Result TryGetSystem(this EventInstance eventInstance, out FmodStudioSystem system) { fixed (FmodStudioSystem* systemPtr = &system) return PInvoke.EventInstanceGetSystem(eventInstance, systemPtr); } /// /// /// Retrieves the FMOD Studio System. /// /// /// Studio::EventInstance::getSystem /// /// public static FmodStudioSystem GetSystem(this EventInstance eventInstance) { TryGetSystem(eventInstance, out var system).Check(); return system; } /// /// /// Retrieves the volume level. /// /// /// Studio::EventInstance::getVolume /// /// public static unsafe Result TryGetVolume( this EventInstance eventInstance, out float volume, out float finalVolume ) { fixed (float* volumePtr = &volume) fixed (float* finalVolumePtr = &finalVolume) return PInvoke.EventInstanceGetVolume(eventInstance, volumePtr, finalVolumePtr); } /// /// /// Retrieves the volume level. /// /// /// Studio::EventInstance::getVolume /// /// public static void GetVolume(this EventInstance eventInstance, out float volume, out float finalVolume) => TryGetVolume(eventInstance, out volume, out finalVolume).Check(); /// /// /// Sets the volume level. /// /// /// Studio::EventInstance::setVolume /// /// public static Result TrySetVolume(this EventInstance eventInstance, float volume) => PInvoke.EventInstanceSetVolume(eventInstance, volume); /// /// /// Sets the volume level. /// /// /// Studio::EventInstance::setVolume /// /// public static void SetVolume(this EventInstance eventInstance, float volume) => TrySetVolume(eventInstance, volume).Check(); /// /// /// Retrieves the pitch multiplier. /// /// /// Studio::EventInstance::getPitch /// /// public static unsafe Result TryGetPitch(this EventInstance eventInstance, out float pitch, out float finalPitch) { fixed (float* pitchPtr = &pitch) fixed (float* finalPitchPtr = &finalPitch) return PInvoke.EventInstanceGetPitch(eventInstance, pitchPtr, finalPitchPtr); } /// /// /// Retrieves the pitch multiplier. /// /// /// Studio::EventInstance::getPitch /// /// public static void GetPitch(this EventInstance eventInstance, out float pitch, out float finalPitch) => TryGetPitch(eventInstance, out pitch, out finalPitch).Check(); /// /// /// Sets the pitch multiplier. /// /// /// Studio::EventInstance::setPitch /// /// public static Result TrySetPitch(this EventInstance eventInstance, float pitch) => PInvoke.EventInstanceSetPitch(eventInstance, pitch); /// /// /// Sets the pitch multiplier. /// /// /// Studio::EventInstance::setPitch /// /// public static void SetPitch(this EventInstance eventInstance, float pitch) => TrySetPitch(eventInstance, pitch).Check(); /// /// /// Retrieves the 3D attributes. /// /// /// Studio::EventInstance::get3DAttributes /// /// public static unsafe Result TryGet3dAttributes(this EventInstance eventInstance, out Attributes3d attributes) { fixed (Attributes3d* attributesPtr = &attributes) return PInvoke.EventInstanceGet3dAttributes(eventInstance, attributesPtr); } /// /// /// Retrieves the 3D attributes. /// /// /// Studio::EventInstance::get3DAttributes /// /// public static Attributes3d Get3dAttributes(this EventInstance eventInstance) { TryGet3dAttributes(eventInstance, out var attributes).Check(); return attributes; } /// /// /// Sets the 3D attributes. /// /// /// Studio::EventInstance::set3DAttributes /// /// public static unsafe Result TrySet3dAttributes(this EventInstance eventInstance, in Attributes3d attributes) { fixed (Attributes3d* attributesPtr = &attributes) return PInvoke.EventInstanceSet3dAttributes(eventInstance, attributesPtr); } /// /// /// Sets the 3D attributes. /// /// /// Studio::EventInstance::set3DAttributes /// /// public static void Set3dAttributes(this EventInstance eventInstance, in Attributes3d attributes) => TrySet3dAttributes(eventInstance, attributes).Check(); /// /// /// Retrieves the listener mask. /// /// /// Studio::EventInstance::getListenerMask /// /// public static unsafe Result TryGetListenerMask(this EventInstance eventInstance, out uint mask) { fixed (uint* maskPtr = &mask) return PInvoke.EventInstanceGetListenerMask(eventInstance, maskPtr); } /// /// /// Retrieves the listener mask. /// /// /// Studio::EventInstance::getListenerMask /// /// public static uint GetListenerMask(this EventInstance eventInstance) { TryGetListenerMask(eventInstance, out var mask).Check(); return mask; } /// /// /// Sets the listener mask. /// /// /// Studio::EventInstance::setListenerMask /// /// public static Result TrySetListenerMask(this EventInstance eventInstance, uint mask) => PInvoke.EventInstanceSetListenerMask(eventInstance, mask); /// /// /// Sets the listener mask. /// /// /// Studio::EventInstance::setListenerMask /// /// public static void SetListenerMask(this EventInstance eventInstance, uint mask) => TrySetListenerMask(eventInstance, mask).Check(); /// /// /// Retrieves the value of a built-in property. /// /// /// Studio::EventInstance::getProperty /// /// public static unsafe Result TryGetProperty( this EventInstance eventInstance, EventProperty index, out float value ) { fixed (float* valuePtr = &value) return PInvoke.EventInstanceGetProperty(eventInstance, index, valuePtr); } /// /// /// Retrieves the value of a built-in property. /// /// /// Studio::EventInstance::getProperty /// /// public static float GetProperty(this EventInstance eventInstance, EventProperty index) { TryGetProperty(eventInstance, index, out var value).Check(); return value; } /// /// /// Sets the value of a built-in property. /// /// /// Studio::EventInstance::setProperty /// /// public static Result TrySetProperty(this EventInstance eventInstance, EventProperty index, float value) => PInvoke.EventInstanceSetProperty(eventInstance, index, value); /// /// /// Sets the value of a built-in property. /// /// /// Studio::EventInstance::setProperty /// /// public static void SetProperty(this EventInstance eventInstance, EventProperty index, float value) => TrySetProperty(eventInstance, index, value).Check(); /// /// /// Retrieves the core reverb send level. /// /// /// Studio::EventInstance::getReverbLevel /// /// public static unsafe Result TryGetReverbLevel(this EventInstance eventInstance, int index, out float level) { fixed (float* levelPtr = &level) return PInvoke.EventInstanceGetReverbLevel(eventInstance, index, levelPtr); } /// /// /// Retrieves the core reverb send level. /// /// /// Studio::EventInstance::getReverbLevel /// /// public static float GetReverbLevel(this EventInstance eventInstance, int index) { TryGetReverbLevel(eventInstance, index, out var level).Check(); return level; } /// /// /// Sets the core reverb send level. /// /// /// Studio::EventInstance::setReverbLevel /// /// public static Result TrySetReverbLevel(this EventInstance eventInstance, int index, float level) => PInvoke.EventInstanceSetReverbLevel(eventInstance, index, level); /// /// /// Sets the core reverb send level. /// /// /// Studio::EventInstance::setReverbLevel /// /// public static void SetReverbLevel(this EventInstance eventInstance, int index, float level) => TrySetReverbLevel(eventInstance, index, level).Check(); /// /// /// Retrieves the pause state. /// /// /// Studio::EventInstance::getPaused /// /// public static unsafe Result TryGetPaused(this EventInstance eventInstance, out Bool32 paused) { fixed (Bool32* pausedPtr = &paused) return PInvoke.EventInstanceGetPaused(eventInstance, pausedPtr); } /// /// /// Retrieves the pause state. /// /// /// Studio::EventInstance::getPaused /// /// public static Bool32 GetPaused(this EventInstance eventInstance) { TryGetPaused(eventInstance, out var paused).Check(); return paused; } /// /// /// Sets the pause state. /// /// /// Studio::EventInstance::setPaused /// /// public static Result TrySetPaused(this EventInstance eventInstance, Bool32 paused) => PInvoke.EventInstanceSetPaused(eventInstance, paused); /// /// /// Sets the pause state. /// /// /// Studio::EventInstance::setPaused /// /// public static void SetPaused(this EventInstance eventInstance, Bool32 paused) => TrySetPaused(eventInstance, paused).Check(); /// /// /// Starts playback. /// /// /// If the instance was already playing then calling this function will restart the event. /// /// /// Generally it is a best practice to call Studio::EventInstance::release on event instances immediately /// after starting them, unless you want to play the event instance multiple times or explicitly stop it and /// start it again later. /// /// /// See Also: Studio::EventInstance::stop, Sample Data Loading /// /// /// Studio::EventInstance::start /// /// public static Result TryStart(this EventInstance eventInstance) => PInvoke.EventInstanceStart(eventInstance); /// /// /// Starts playback. /// /// /// If the instance was already playing then calling this function will restart the event. /// /// /// Generally it is a best practice to call Studio::EventInstance::release on event instances immediately /// after starting them, unless you want to play the event instance multiple times or explicitly stop it and /// start it again later. /// /// /// See Also: Studio::EventInstance::stop, Sample Data Loading /// /// /// Studio::EventInstance::start /// /// public static void Start(this EventInstance eventInstance) => TryStart(eventInstance).Check(); /// /// /// Stops playback. /// /// /// Studio::EventInstance::stop /// /// public static Result TryStop(this EventInstance eventInstance, StopMode mode) => PInvoke.EventInstanceStop(eventInstance, mode); /// /// /// Stops playback. /// /// /// Studio::EventInstance::stop /// /// public static void Stop(this EventInstance eventInstance, StopMode mode) => TryStop(eventInstance, mode).Check(); /// /// /// Retrieves the timeline cursor position. /// /// /// Studio::EventInstance::getTimelinePosition /// /// public static unsafe Result TryGetTimelinePosition(this EventInstance eventInstance, out int position) { fixed (int* positionPtr = &position) return PInvoke.EventInstanceGetTimelinePosition(eventInstance, positionPtr); } /// /// /// Retrieves the timeline cursor position. /// /// /// Studio::EventInstance::getTimelinePosition /// /// public static int GetTimelinePosition(this EventInstance eventInstance) { TryGetTimelinePosition(eventInstance, out var position).Check(); return position; } /// /// /// Sets the timeline cursor position. /// /// /// Studio::EventInstance::setTimelinePosition /// /// public static Result TrySetTimelinePosition(this EventInstance eventInstance, int position) => PInvoke.EventInstanceSetTimelinePosition(eventInstance, position); /// /// /// Sets the timeline cursor position. /// /// /// Studio::EventInstance::setTimelinePosition /// /// public static void SetTimelinePosition(this EventInstance eventInstance, int position) => TrySetTimelinePosition(eventInstance, position).Check(); /// /// /// Retrieves the playback state. /// /// /// Studio::EventInstance::getPlaybackState /// /// public static unsafe Result TryGetPlaybackState(this EventInstance eventInstance, out PlaybackState state) { fixed (PlaybackState* statePtr = &state) return PInvoke.EventInstanceGetPlaybackState(eventInstance, statePtr); } /// /// /// Retrieves the playback state. /// /// /// Studio::EventInstance::getPlaybackState /// /// public static PlaybackState GetPlaybackState(this EventInstance eventInstance) { TryGetPlaybackState(eventInstance, out var state).Check(); return state; } /// /// /// Retrieves the core ChannelGroup. /// /// /// Studio::EventInstance::getChannelGroup /// /// public static unsafe Result TryGetChannelGroup(this EventInstance eventInstance, out ChannelGroup group) { fixed (ChannelGroup* groupPtr = &group) return PInvoke.EventInstanceGetChannelGroup(eventInstance, groupPtr); } /// /// /// Retrieves the core ChannelGroup. /// /// /// Studio::EventInstance::getChannelGroup /// /// public static ChannelGroup GetChannelGroup(this EventInstance eventInstance) { TryGetChannelGroup(eventInstance, out var group).Check(); return group; } /// /// /// Retrieves the minimum and maximum distances for 3D attenuation. /// /// /// Studio::EventInstance::getMinMaxDistance /// /// public static unsafe Result TryGetMinMaxDistance(this EventInstance eventInstance, out float min, out float max) { fixed (float* minPtr = &min) fixed (float* maxPtr = &max) return PInvoke.EventInstanceGetMinMaxDistance(eventInstance, minPtr, maxPtr); } /// /// /// Retrieves the minimum and maximum distances for 3D attenuation. /// /// /// Studio::EventInstance::getMinMaxDistance /// /// public static void GetMinMaxDistance(this EventInstance eventInstance, out float min, out float max) => TryGetMinMaxDistance(eventInstance, out min, out max).Check(); /// /// /// Marks the event instance for release. /// /// /// This function marks the event instance to be released. Event instances marked for release are destroyed /// by the asynchronous update when they are in the stopped state (FMOD_STUDIO_PLAYBACK_STOPPED). /// /// /// Generally it is a best practice to release event instances immediately after calling /// Studio::EventInstance::start, unless you want to play the event instance multiple times or explicitly /// stop it and start it again later. It is possible to interact with the instance after falling /// release(), however if the sound has stopped ERR_INVALID_HANDLE will be returned. /// /// /// See Also: Studio::EventInstance::stop, Studio::EventInstance::getPlaybackState /// /// /// Studio::EventInstance::release /// /// public static Result TryRelease(this EventInstance eventInstance) => PInvoke.EventInstanceRelease(eventInstance); /// /// /// Marks the event instance for release. /// /// /// This function marks the event instance to be released. Event instances marked for release are destroyed /// by the asynchronous update when they are in the stopped state (FMOD_STUDIO_PLAYBACK_STOPPED). /// /// /// Generally it is a best practice to release event instances immediately after calling /// Studio::EventInstance::start, unless you want to play the event instance multiple times or explicitly /// stop it and start it again later. It is possible to interact with the instance after falling /// release(), however if the sound has stopped ERR_INVALID_HANDLE will be returned. /// /// /// See Also: Studio::EventInstance::stop, Studio::EventInstance::getPlaybackState /// /// /// Studio::EventInstance::release /// /// public static void Release(this EventInstance eventInstance) => TryRelease(eventInstance).Check(); /// /// /// Retrieves the virtualization state. /// /// /// Studio::EventInstance::isVirtual /// /// public static unsafe Result TryIsVirtual(this EventInstance eventInstance, out Bool32 virtualState) { fixed (Bool32* virtualStatePtr = &virtualState) return PInvoke.EventInstanceIsVirtual(eventInstance, virtualStatePtr); } /// /// /// Retrieves the virtualization state. /// /// /// Studio::EventInstance::isVirtual /// /// public static Bool32 IsVirtual(this EventInstance eventInstance) { TryIsVirtual(eventInstance, out var virtualState).Check(); return virtualState; } /// /// /// Retrieves a parameter value by name, including the path if needed. /// /// /// Studio::EventInstance::getParameterByName /// /// public static unsafe Result TryGetParameterByName( this EventInstance eventInstance, RefString8 name, out float value, out float finalValue ) { fixed (byte* namePtr = name) fixed (float* valuePtr = &value) fixed (float* finalValuePtr = &finalValue) return PInvoke.EventInstanceGetParameterByName(eventInstance, namePtr, valuePtr, finalValuePtr); } /// /// /// Retrieves a parameter value by name, including the path if needed. /// /// /// Studio::EventInstance::getParameterByName /// /// public static void GetParameterByName( this EventInstance eventInstance, RefString8 name, out float value, out float finalValue ) => TryGetParameterByName(eventInstance, name, out value, out finalValue).Check(); /// /// /// Sets a parameter value by name, including the path if needed. /// /// /// Studio::EventInstance::setParameterByName /// /// public static unsafe Result TrySetParameterByName( this EventInstance eventInstance, RefString8 name, float value, Bool32 ignoreSeekSpeed ) { fixed (byte* namePtr = name) return PInvoke.EventInstanceSetParameterByName(eventInstance, namePtr, value, ignoreSeekSpeed); } /// /// /// Sets a parameter value by name, including the path if needed. /// /// /// Studio::EventInstance::setParameterByName /// /// public static void SetParameterByName( this EventInstance eventInstance, RefString8 name, float value, Bool32 ignoreSeekSpeed ) => TrySetParameterByName(eventInstance, name, value, ignoreSeekSpeed).Check(); /// /// /// Sets a parameter value by name, including the path if needed, looking up the value label. /// /// /// Studio::EventInstance::setParameterByNameWithLabel /// /// public static unsafe Result TrySetParameterByNameWithLabel( this EventInstance eventInstance, RefString8 name, RefString8 label, Bool32 ignoreSeekSpeed ) { fixed (byte* namePtr = name) fixed (byte* labelPtr = label) return PInvoke.EventInstanceSetParameterByNameWithLabel( eventInstance, namePtr, labelPtr, ignoreSeekSpeed ); } /// /// /// Sets a parameter value by name, including the path if needed, looking up the value label. /// /// /// Studio::EventInstance::setParameterByNameWithLabel /// /// public static void SetParameterByNameWithLabel( this EventInstance eventInstance, RefString8 name, RefString8 label, Bool32 ignoreSeekSpeed ) => TrySetParameterByNameWithLabel(eventInstance, name, label, ignoreSeekSpeed).Check(); /// /// /// Retrieves a parameter value by unique identifier. /// /// /// Studio::EventInstance::getParameterByID /// /// public static unsafe Result TryGetParameterById( this EventInstance eventInstance, ParameterId id, out float value, out float finalValue ) { fixed (float* valuePtr = &value) fixed (float* finalValuePtr = &finalValue) return PInvoke.EventInstanceGetParameterById(eventInstance, id, valuePtr, finalValuePtr); } /// /// /// Retrieves a parameter value by unique identifier. /// /// /// Studio::EventInstance::getParameterByID /// /// public static void GetParameterById( this EventInstance eventInstance, ParameterId id, out float value, out float finalValue ) => TryGetParameterById(eventInstance, id, out value, out finalValue).Check(); /// /// /// Sets a parameter value by unique identifier. /// /// /// Studio::EventInstance::setParameterByID /// /// public static Result TrySetParameterById( this EventInstance eventInstance, ParameterId id, float value, Bool32 ignoreSeekSpeed ) => PInvoke.EventInstanceSetParameterById(eventInstance, id, value, ignoreSeekSpeed); /// /// /// Sets a parameter value by unique identifier. /// /// /// Studio::EventInstance::setParameterByID /// /// public static void SetParameterById( this EventInstance eventInstance, ParameterId id, float value, Bool32 ignoreSeekSpeed ) => TrySetParameterById(eventInstance, id, value, ignoreSeekSpeed).Check(); /// /// /// Sets a parameter value by unique identifier, looking up the value label. /// /// /// Studio::EventInstance::setParameterByIDWithLabel /// /// public static unsafe Result TrySetParameterByIdWithLabel( this EventInstance eventInstance, ParameterId id, RefString8 label, Bool32 ignoreSeekSpeed ) { fixed (byte* labelPtr = label) return PInvoke.EventInstanceSetParameterByIdWithLabel(eventInstance, id, labelPtr, ignoreSeekSpeed); } /// /// /// Sets a parameter value by unique identifier, looking up the value label. /// /// /// Studio::EventInstance::setParameterByIDWithLabel /// /// public static void SetParameterByIdWithLabel( this EventInstance eventInstance, ParameterId id, RefString8 label, Bool32 ignoreSeekSpeed ) => TrySetParameterByIdWithLabel(eventInstance, id, label, ignoreSeekSpeed).Check(); /// /// /// Sets multiple parameter values by unique identifier. /// /// /// Studio::EventInstance::setParametersByIDs /// /// public static unsafe Result TrySetParametersByIDs( this EventInstance eventInstance, ParameterId* ids, float* values, int count, Bool32 ignoreSeekSpeed ) => PInvoke.EventInstanceSetParametersByIDs(eventInstance, ids, values, count, ignoreSeekSpeed); /// /// /// Sets multiple parameter values by unique identifier. /// /// /// Studio::EventInstance::setParametersByIDs /// /// public static unsafe void SetParametersByIDs( this EventInstance eventInstance, ParameterId* ids, float* values, int count, Bool32 ignoreSeekSpeed ) => TrySetParametersByIDs(eventInstance, ids, values, count, ignoreSeekSpeed).Check(); /// /// /// Allow an event to continue past a sustain point. /// /// /// Multiple sustain points may be bypassed ahead of time and the key off count will be decremented each /// time the timeline cursor passes a sustain point. /// /// /// This function returns FMOD_ERR_EVENT_NOTFOUND if the event has no sustain points. /// /// /// See Also: Studio::EventDescription::hasSustainPoint /// /// /// Studio::EventInstance::keyOff /// /// public static Result TryKeyOff(this EventInstance eventInstance) => PInvoke.EventInstanceKeyOff(eventInstance); /// /// /// Allow an event to continue past a sustain point. /// /// /// Multiple sustain points may be bypassed ahead of time and the key off count will be decremented each /// time the timeline cursor passes a sustain point. /// /// /// This function returns FMOD_ERR_EVENT_NOTFOUND if the event has no sustain points. /// /// /// See Also: Studio::EventDescription::hasSustainPoint /// /// /// Studio::EventInstance::keyOff /// /// public static void KeyOff(this EventInstance eventInstance) => TryKeyOff(eventInstance).Check(); /// /// /// Sets the user callback. /// /// /// Studio::EventInstance::setCallback /// /// public static Result TrySetCallback( this EventInstance eventInstance, EventCallbackPtr callback, EventCallbackType callbackMask ) => PInvoke.EventInstanceSetCallback(eventInstance, callback, callbackMask); /// /// /// Sets the user callback. /// /// /// Studio::EventInstance::setCallback /// /// public static void SetCallback( this EventInstance eventInstance, EventCallbackPtr callback, EventCallbackType callbackMask ) => TrySetCallback(eventInstance, callback, callbackMask).Check(); /// /// /// Retrieves the event instance user data. /// /// /// Studio::EventInstance::getUserData /// /// public static unsafe Result TryGetUserData(this EventInstance eventInstance, out nint userData) { fixed (nint* userDataPtr = &userData) return PInvoke.EventInstanceGetUserData(eventInstance, userDataPtr); } /// /// /// Retrieves the event instance user data. /// /// /// Studio::EventInstance::getUserData /// /// public static nint GetUserData(this EventInstance eventInstance) { TryGetUserData(eventInstance, out var userData).Check(); return userData; } /// /// /// Sets the event instance user data. /// /// /// Studio::EventInstance::setUserData /// /// public static Result TrySetUserData(this EventInstance eventInstance, nint userData) => PInvoke.EventInstanceSetUserData(eventInstance, userData); /// /// /// Sets the event instance user data. /// /// /// Studio::EventInstance::setUserData /// /// public static void SetUserData(this EventInstance eventInstance, nint userData) => TrySetUserData(eventInstance, userData).Check(); /// /// /// Retrieves the event CPU usage data. /// /// /// Studio::EventInstance::getCPUUsage /// /// public static unsafe Result TryGetCpuUsage( this EventInstance eventInstance, out uint exclusive, out uint inclusive ) { fixed (uint* exclusivePtr = &exclusive) fixed (uint* inclusivePtr = &inclusive) return PInvoke.EventInstanceGetCpuUsage(eventInstance, exclusivePtr, inclusivePtr); } /// /// /// Retrieves the event CPU usage data. /// /// /// Studio::EventInstance::getCPUUsage /// /// public static void GetCpuUsage(this EventInstance eventInstance, out uint exclusive, out uint inclusive) => TryGetCpuUsage(eventInstance, out exclusive, out inclusive).Check(); /// /// /// Retrieves memory usage statistics. /// /// /// Studio::EventInstance::getMemoryUsage /// /// public static unsafe Result TryGetMemoryUsage(this EventInstance eventInstance, out MemoryUsage memoryUsage) { fixed (MemoryUsage* memoryUsagePtr = &memoryUsage) return PInvoke.EventInstanceGetMemoryUsage(eventInstance, memoryUsagePtr); } /// /// /// Retrieves memory usage statistics. /// /// /// Studio::EventInstance::getMemoryUsage /// /// public static MemoryUsage GetMemoryUsage(this EventInstance eventInstance) { TryGetMemoryUsage(eventInstance, out var memoryUsage).Check(); return memoryUsage; } } }