AudioClipExt.FromPcmStreamAsync Method

Creates an AudioClip from a PCM stream asynchronously.

Namespace: UltimateXR.Extensions.Unity.Audio
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Task<AudioClip> FromPcmStreamAsync(
	Stream sourceStream,
	string clipName = "pcm",
	CancellationToken ct = default
)


Parameters

 

sourceStream
Type: System.IO.Stream
The source stream
clipName (Optional)
Type: System.String
The name assigned to the clip
ct (Optional)
Type: System.Threading.CancellationToken
The optional cancellation token, to cancel the task

Return Value

Type: Task(AudioClip)
An awaitable task that returns the AudioClip object

See Also

Reference

AudioClipExt Class
UltimateXR.Extensions.Unity.Audio Namespace