docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AudioInput

    Use this class to record audio from the built-in Unity audio system.

    Inheritance
    object
    RecorderInput
    AudioInput
    Implements
    IDisposable
    Inherited Members
    RecorderInput.settings
    RecorderInput.Dispose()
    RecorderInput.Dispose(bool)
    RecorderInput.SessionCreated(RecordingSession)
    RecorderInput.NewFrameStarting(RecordingSession)
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.Recorder.Input
    Assembly: solution.dll
    Syntax
    public class AudioInput : RecorderInput, IDisposable

    Properties

    Name Description
    AudioSettings

    The settings of the audio input.

    ChannelCount

    The number of channels in the audio input.

    SampleRate

    The sampling rate, in hertz.

    Methods

    Name Description
    BeginRecording(RecordingSession)
    EndRecording(RecordingSession)
    FrameDone(RecordingSession)
    GetBuffer(ref NativeArray<float>, out int)

    Get the buffer of audio samples.

    GetBufferSize()

    Get the size of the buffer of audio samples (including all channels).

    NewFrameReady(RecordingSession)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023