API reference
API reference
Select your platform
No SDKs available
No versions available

BaseAudioSystem Class

Extends MonoBehaviour, IAudioSystem
An abstract audio system class that defaults to use RawAudioClipStream and

Fields

Total seconds of audio required before OnReady callbacks occur.
Maximum length of audio clip stream in seconds.
Number of audio clip streams to pool immediately on awake.

Protected Functions

Preload clips into audio clip cache
Destroy all audio clips in the cache
Abstract method for generating new audio clip streams

Member Functions

Returns a new audio player for managing audio clip stream playback states
Parameters
root
The gameobject to add the player to if applicable
Returns a new audio clip stream for audio stream handling
Parameters
channels
Number of channels within audio
sampleRate
Desired rate of playback
Ensures the specified amount of TAudioClipStreams are generated and ready for use
Destroys all generated TAudioClipStreams
Did you find this page helpful?
Thumbs up icon
Thumbs down icon