Module sound

Module sound 

Source
Expand description

Sound specific structs, enums and functions.

§Examples

which are also unit tests:

Sound SoundInst

Structs§

Sound
This class represents a sound effect! Excellent for blips and bloops and little clips that you might play around your scene. Right now, this supports .wav, .mp3, and procedurally generated noises!
SoundInst
This represents a play instance of a Sound! You can get one when you call Sound::play(). This allows you to do things like cancel a piece of audio early, or change the volume and position of it as it’s playing. https://stereokit.net/Pages/StereoKit/SoundInst.html
_SoundT
StereoKit internal type.

Functions§

sound_addref
sound_create
sound_create_samples
sound_create_stream
sound_cursor_samples
sound_duration
sound_find
sound_generate
sound_get_decibels
sound_get_id
sound_inst_get_intensity
sound_inst_get_pos
sound_inst_get_volume
sound_inst_is_playing
sound_inst_set_pos
sound_inst_set_volume
sound_inst_stop
sound_play
sound_read_samples
sound_release
sound_set_decibels
sound_set_id
sound_total_samples
sound_unread_samples
sound_write_samples

Type Aliases§

SoundT
StereoKit ffi type.