search API (or start typing anywhere)
AudioSource
snow.systems.audio.AudioSource
defined in ``
class
Members
app
app : snow.Snow
data
data : snow.types.AudioData
stream_buffer_count
stream_buffer_count : Int
Streams only: The number of buffers to queue up. default:2 For most cases this can be left alone.
stream_buffer_length
stream_buffer_length : Int
Streams only: The size in bytes of a single stream buffer. This is ~1 sec in 16 bit mono. default:176400 for most cases this can be left alone.
Methods
bytes_to_seconds
bytes_to_seconds(_bytes:Int) : Float
A helper for converting bytes to seconds for a sound source destroy
destroy() : Void
duration
duration() : Float
instance
instance(_handle:snow.types.AudioHandle) : snow.systems.audio.AudioInstance
Called by the audio system to obtain a new instance of this source. new
new(_app:snow.Snow, _data:snow.types.AudioData) : Void
seconds_to_bytes
seconds_to_bytes(_seconds:Float) : Int
A helper for converting seconds to bytes for this audio source