Class WAVEncoder
An encoder for the WAV format.
Implements
Inherited Members
Namespace: UnityEditor.Recorder
Assembly: Unity.Recorder.Editor.dll
Syntax
public class WAVEncoder : IDisposable
Constructors
WAVEncoder(string)
The constructor of a WAV encoder.
Declaration
public WAVEncoder(string filename)
Parameters
Type | Name | Description |
---|---|---|
string | filename | The path of the WAV file to create. |
Methods
AddSamples(NativeArray<float>)
Add audio samples to the WAV file.
Declaration
public void AddSamples(NativeArray<float> data)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<float> | data | The buffer of audio samples to add. |
Dispose()
Stop the encoder.
Declaration
public void Dispose()
Stop()
Stop the encoder and close the file.
Declaration
public void Stop()