Class AudioInput
  Use this class to record audio from the built-in Unity audio system.
Assembly: Unity.Recorder.Editor.dll
  
  
    public class AudioInput : RecorderInput, IDisposable
   
  Properties
  
  
  The settings of the audio input.
Declaration
  
    public AudioInputSettings AudioSettings { get; }
   
  Property Value
  
  
  
  The number of channels in the audio input.
Declaration
  
    public ushort ChannelCount { get; }
   
  Property Value
  
  
  
  The sampling rate, in hertz.
Declaration
  
    public int SampleRate { get; }
   
  Property Value
  
  Methods
  
  
  
  
  Declaration
  
    protected override void BeginRecording(RecordingSession session)
   
  Parameters
  
  Overrides
  
  
  
  
  
  Declaration
  
    protected override void EndRecording(RecordingSession session)
   
  Parameters
  
  Overrides
  
  
  
  
  
  Declaration
  
    protected override void FrameDone(RecordingSession session)
   
  Parameters
  
  Overrides
  
  
  
  Get the buffer of audio samples.
Declaration
  
    public void GetBuffer(ref NativeArray<float> userArray, out int writtenSize)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | NativeArray<float> | userArray | A native array of float that is supplied and managed by the user. | 
      
        | int | writtenSize | The number of values that were written to the supplied array. | 
    
  
  Exceptions
  
    
      
        | Type | Condition | 
    
    
      
        | ArgumentException | Throws an exception if the passed array is too small to hold the buffer data. | 
    
  
  
  
  Get the size of the buffer of audio samples (including all channels).
Declaration
  
    public int GetBufferSize()
   
  Returns
  
  
  
  
  
  Declaration
  
    protected override void NewFrameReady(RecordingSession session)
   
  Parameters
  
  Overrides
  
  Implements