AudioClipExt.StreamedPcmClip.Create Method

Creates a AudioClipExt.StreamedPcmClip object from a data stream.

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

Syntax

C#

public static AudioClipExt.StreamedPcmClip Create(
	Stream pcmStream,
	string clipName = "pcm"
)

Parameters

 

pcmStream
Type: System.IO.Stream
Source data stream
clipName (Optional)
Type: System.String
Name that will be assigned to the clip

Return Value

Type: AudioClipExt.StreamedPcmClip
AudioClipExt.StreamedPcmClip describing the PCM audio clip

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe bit depth is not supported

See Also

Reference

AudioClipExt.StreamedPcmClip Class
UltimateXR.Extensions.Unity.Audio Namespace