Class OdinMuteAudioComponent
Custom mute audio component for OdinNative.Wrapper.Media.CustomEffect
This class is an effect in the odin audio pipeline to mute based on the OdinNative.Unity.Audio.OdinMuteAudioComponent.SilenceToggle flag. The intention is to provide a convenient way with Unity Editor UI of Marshal a 1-byte signed integer bool for a specific audio packet in the current pipeline.
Inheritance: System.Object -> UnityEngine.Object -> UnityEngine.Component -> UnityEngine.Behaviour -> UnityEngine.MonoBehaviour -> OdinNative.Unity.Audio.OdinCustomEffectUnityComponentBase<U>
Implements:
OdinNative.Unity.Audio.IOdinEffect
Fields
SilenceToggle
Methods
GetEffectUserData()
Get userdata used for the OdinNative.Unity.Audio.OdinCustomEffectUnityComponentBase
Returns
System.IntPtr: effect userdata
CustomEffectCallback(OdinTArray<float>, ref bool, nint)
Callback delegate for the effect
Parameters
| Type | Name | Description |
|---|---|---|
| OdinNative.Core.Imports.NativeBindings.OdinTArray<T> | audio | audio data wrapper for copy buffer to native |
System.Boolean | isSilent | flag whether the buffer contains silence, can be set to mute the frame |
System.IntPtr | _ | effect userdata, see OdinNative.Unity.Audio.OdinCustomEffectUnityComponentBase |