Sound_Player module

make_stream

procedure · 1 overloadSource

Makes a stream to play data. Returns null when the sound is not loaded or has more channels than a stream can take.

make_stream :: (
    data: *Sound_Data,
    category := Sound_Category.GENERAL_SFX
) -> *Sound_Stream

Makes a stream to play data. Returns null when the sound is not loaded or has more channels than a stream can take.

Parameters

data: *Sound_Data
a loaded sound.
category := Sound_Category.GENERAL_SFX
the group the stream belongs to, for volume control.

Returns

See also