Divooka Reference

Playback

2 nodes

On this page 2

Is Playback Available

Function

Whether this machine has an audio device that AudioPlayback.Play can use.

Signature
IsPlaybackAvailable() -> Truth
bool IsPlaybackAvailable()

Returns

AvailableTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Playback
Package
Audio Processing

Play

Function

Plays a clip through the default audio device, and waits until it has finished.

Signature
Play(audio: AudioBuffer) -> AudioBuffer
AudioBuffer Play(AudioBuffer audio)

Parameters

nametypedefaultdescription
audioAudioBuffer—The clip to play.

Returns

AudioAudioBuffer

Remarks

Waiting is what lets a program play one sound after another: the next step starts when this one has been heard. With no audio device, this stops the program and says so rather than playing nothing silently.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Playback
Package
Audio Processing