SoundManager
Index
Variables
Functions
Variables
audioSources
maxStreams
musicVolume
playingStreams
soundData
soundPath
soundPool
soundVolume
Functions
autoPause
Returns void
autoResume
Returns void
createSource
Parameters
sourceType: SourceType
source: any
soundName: string
optionalvolume: number
optionalradius: number
Returns AudioSource
getAllSources
Parameters
source: any
optionalsoundName: string
Returns AudioSource[]
getSoundData
Parameters
soundName: string
Returns SoundData
getSoundDuration
Parameters
soundName: string
Returns any
getSource
Parameters
source: any
optionalsoundName: string
Returns AudioSource
init
Parameters
maxStreamsCount: number
Returns void
pause
Parameters
streamID: number
Returns void
playSound
Parameters
soundName: string
optionalvolume: number
optionalpitch: number
Returns number
playSoundAt
Parameters
x: number
y: number
z: number
soundName: string
optionalvolume: number
optionalpitch: number
optionalradius: number
Returns number
playSoundAtBlock
Parameters
tile: any
soundName: string
optionalvolume: number
optionalradius: number
Returns number
playSoundAtEntity
Parameters
entity: number
soundName: string
optionalvolume: number
optionalpitch: number
optionalradius: number
Returns number
readSettings
Returns void
registerSound
Parameters
soundName: string
path: string | string[]
optionallooping: boolean
Returns void
release
Returns void
removeSource
Parameters
audioSource: AudioSource
Returns void
resume
Parameters
streamID: number
Returns void
setResourcePath
Parameters
path: string
Returns void
setVolume
Parameters
streamID: number
leftVolume: number
optionalrightVolume: number
Returns void
startPlaySound
Parameters
sourceType: SourceType
source: any
soundName: string
optionalvolume: number
optionalradius: number
Returns AudioSource
stop
Parameters
streamID: number
Returns void
stopAll
Returns void
stopPlaySound
Parameters
source: any
optionalsoundName: string
Returns boolean
tick
Returns void