@eliastik/simple-sound-studio-lib
@eliastik/simple-sound-studio-lib / SoundStudioFactory
Defined in: utils/SoundStudioFactory.ts:19
Factory class to create instances of sound studio components.
This factory supports both singleton-based methods (deprecated) and a new instance-based creation model. The singleton methods will be removed in a future release.
new SoundStudioFactory():
SoundStudioFactory
static
createAudioEditor(configService
?,buffersToFetch
?):AudioEditorInterface
Defined in: utils/SoundStudioFactory.ts:65
Create a singleton AudioEditor instance.
Optional configuration service.
string
[]
Optional list of audio buffers to pre-fetch.
AudioEditorInterface
The singleton AudioEditor instance.
This method is deprecated. Use createNewInstance instead.
static
createNewInstance(options
?):SoundStudioFactoryInstance
Defined in: utils/SoundStudioFactory.ts:36
Create a new instance of sound studio components.
SoundStudioFactoryNewInstanceOptions
Optional configuration for the new instance. See SoundStudioFactoryNewInstanceOptions
A new instance of the sound studio components. See SoundStudioFactoryInstance
static
createVoiceRecorder():VoiceRecorderInterface
Defined in: utils/SoundStudioFactory.ts:91
Create a singleton VoiceRecorder instance.
VoiceRecorderInterface
The singleton VoiceRecorder instance.
This method is deprecated. Use createNewInstance instead.
static
getAudioEditorInstance():null
|AudioEditorInterface
Defined in: utils/SoundStudioFactory.ts:105
Get the singleton AudioEditor instance.
null
| AudioEditorInterface
The singleton AudioEditor instance, or null if not initialized.
This method is deprecated. Use createNewInstance instead.
static
getAudioPlayerInstance():null
|BufferPlayerInterface
Defined in: utils/SoundStudioFactory.ts:119
Get the singleton BufferPlayer instance.
null
| BufferPlayerInterface
The singleton BufferPlayer instance, or null if not initialized.
This method is deprecated. Use createNewInstance instead.
static
getAudioRecorderInstance():null
|VoiceRecorderInterface
Defined in: utils/SoundStudioFactory.ts:133
Get the singleton VoiceRecorder instance.
null
| VoiceRecorderInterface
The singleton VoiceRecorder instance, or null if not initialized.
This method is deprecated. Use createNewInstance instead.
static
getConfigServiceInstance():undefined
|ConfigService
Defined in: utils/SoundStudioFactory.ts:161
Get the singleton ConfigService instance.
undefined
| ConfigService
The singleton ConfigService instance, or undefined if not initialized.
This method is deprecated. Use createNewInstance instead.
static
getEventEmitterInstance():null
|EventEmitterInterface
Defined in: utils/SoundStudioFactory.ts:147
Get the singleton EventEmitter instance.
null
| EventEmitterInterface
The singleton EventEmitter instance, or null if not initialized.
This method is deprecated. Use createNewInstance instead.