docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WAVEncoder

    An encoder for the WAV format.

    Inheritance
    object
    WAVEncoder
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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()

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)