Sound_Player module

set_repeating

procedureSource

Makes a stream loop, or stops it from looping.

Example
sound := load_audio_file("jump.wav");
stream := make_stream(*sound, .MUSIC);
set_repeating(stream, true);
start_playing(stream);

This one is only checked to compile, not run.

set_repeating :: (stream: *Sound_Stream, repeating: bool)

Makes a stream loop, or stops it from looping.

Parameters

stream: *Sound_Stream
repeating: bool
true to start over each time the end is reached, false to stop there.
Example
sound := load_audio_file("jump.wav");
stream := make_stream(*sound, .MUSIC);
set_repeating(stream, true);
start_playing(stream);

This one is only checked to compile, not run.

See also