AudioSourceManager
class AudioSourceManager(var audioSourceFactory: AudioSourceFactory) : AudioProvider
Content copied to clipboard
Provide audio source management.
The Audio source exposed to client by SharedDataStream which can use multiple reader.
And manage open/close state based on reference count.
Parameters
audioSourceFactory
The audio source factory which can create SharedDataStream
Constructors
Types
Functions
Link copied to clipboard
open override fun acquireAudioInputStream(consumer: Any): SharedDataStream?
Content copied to clipboard
Return SharedDataStream if already open or success to open.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Close audioInputStream if all consumer references released.
Link copied to clipboard