Class AudioOutputExtensions
Extension methods for IAudioOutput
Inherited Members
Namespace: Unity.Audio
Syntax
public static class AudioOutputExtensions
Methods
AttachToDefaultOutput<T>(T)
Attach an output job to Unity's default audio output
Declaration
public static AudioOutputHandle AttachToDefaultOutput<T>(this T outputJob)
where T : struct, IAudioOutput
Parameters
| Type | Name | Description |
|---|---|---|
| T | outputJob | An output job |
Returns
| Type | Description |
|---|---|
| AudioOutputHandle | An AudioOutputHandle representing the created audio job |
Type Parameters
| Name | Description |
|---|---|
| T | A type implementing IAudioOutput |
DisposeOutputHook(ref AudioOutputHandle)
Release an output handle and dispose its resources
Declaration
public static void DisposeOutputHook(ref AudioOutputHandle handle)
Parameters
| Type | Name | Description |
|---|---|---|
| AudioOutputHandle | handle | The handle to be disposed |