Show / Hide Table of Contents

Class AudioSampleProvider

Inheritance
Object
AudioSampleProvider
Implements
IDisposable
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.Audio
Assembly: UnityEngine.dll
Syntax
public class AudioSampleProvider : IDisposable

Properties

| Improve this Doc View Source

availableSampleFrameCount

Declaration
public uint availableSampleFrameCount { get; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

channelCount

Declaration
public ushort channelCount { get; }
Property Value
Type Description
UInt16
| Improve this Doc View Source

consumeSampleFramesNativeFunction

Declaration
public static AudioSampleProvider.ConsumeSampleFramesNativeFunction consumeSampleFramesNativeFunction { get; }
Property Value
Type Description
AudioSampleProvider.ConsumeSampleFramesNativeFunction
| Improve this Doc View Source

enableSampleFramesAvailableEvents

Declaration
public bool enableSampleFramesAvailableEvents { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

enableSilencePadding

Declaration
public bool enableSilencePadding { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

freeSampleFrameCount

Declaration
public uint freeSampleFrameCount { get; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

freeSampleFrameCountLowThreshold

Declaration
public uint freeSampleFrameCountLowThreshold { get; set; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

id

Declaration
public uint id { get; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

maxSampleFrameCount

Declaration
public uint maxSampleFrameCount { get; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

owner

Declaration
public Object owner { get; }
Property Value
Type Description
Object
| Improve this Doc View Source

sampleRate

Declaration
public uint sampleRate { get; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

trackIndex

Declaration
public ushort trackIndex { get; }
Property Value
Type Description
UInt16
| Improve this Doc View Source

valid

Declaration
public bool valid { get; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

ClearSampleFramesAvailableNativeHandler()

Declaration
public void ClearSampleFramesAvailableNativeHandler()
| Improve this Doc View Source

ClearSampleFramesOverflowNativeHandler()

Declaration
public void ClearSampleFramesOverflowNativeHandler()
| Improve this Doc View Source

ConsumeSampleFrames(NativeArray<Single>)

Declaration
public uint ConsumeSampleFrames(NativeArray<float> sampleFrames)
Parameters
Type Name Description
NativeArray<Single> sampleFrames
Returns
Type Description
UInt32
| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

Finalize()

Declaration
protected void Finalize()
| Improve this Doc View Source

SetSampleFramesAvailableNativeHandler(AudioSampleProvider.SampleFramesEventNativeFunction, IntPtr)

Declaration
public void SetSampleFramesAvailableNativeHandler(AudioSampleProvider.SampleFramesEventNativeFunction handler, IntPtr userData)
Parameters
Type Name Description
AudioSampleProvider.SampleFramesEventNativeFunction handler
IntPtr userData
| Improve this Doc View Source

SetSampleFramesOverflowNativeHandler(AudioSampleProvider.SampleFramesEventNativeFunction, IntPtr)

Declaration
public void SetSampleFramesOverflowNativeHandler(AudioSampleProvider.SampleFramesEventNativeFunction handler, IntPtr userData)
Parameters
Type Name Description
AudioSampleProvider.SampleFramesEventNativeFunction handler
IntPtr userData

Events

| Improve this Doc View Source

sampleFramesAvailable

Declaration
public event AudioSampleProvider.SampleFramesHandler sampleFramesAvailable
Event Type
Type Description
AudioSampleProvider.SampleFramesHandler
| Improve this Doc View Source

sampleFramesOverflow

Declaration
public event AudioSampleProvider.SampleFramesHandler sampleFramesOverflow
Event Type
Type Description
AudioSampleProvider.SampleFramesHandler

Implements

System.IDisposable

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX