AudioClipExt.FromPcmBytes Method

Creates an AudioClip from a PCM byte array.

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

Syntax

C#

public static AudioClip FromPcmBytes(
	byte[] bytes,
	string clipName = "pcm"
)

Parameters

 

bytes
Type: System.Byte[]
The source data
clipName (Optional)
Type: System.String
The name assigned to the clip

Return Value

Type: AudioClip
The AudioClip object

See Also

Reference

AudioClipExt Class
UltimateXR.Extensions.Unity.Audio Namespace