OdinAudio
Class to help managing the core audio functionality.
The AVAudioEngine
instance manages audio nodes, controls playback and configures rendering constraints.
Properties
engine
The underlying AVAudioEngine
instance.
devices
A list of audio devices available.
inputDevices
An list of audio input devices.
outputDevices
An list of audio output devices.
isRunning
Indicates the status of the underlying AVAudioEngine
instance.
Methods
deinit
Destroys room and closes the connection to the server if needed.
start()
Starts the underlying AVAudioEngine
instance.
stop()
Stops the underlying AVAudioEngine
instance.
connect(_:)
Attaches the specified room to the underlying AVAudioEngine
instance and connects it.
disconnect(_:)
Detaches the specified room from the underlying AVAudioEngine
instance.
connect(_:)
Attaches the specified media to the underlying AVAudioEngine
instance and connects it.
disconnect(_:)
Detaches the specified media from the underlying AVAudioEngine
instance.
sharedInstance()
Returns a shared instance of the audio engine.