Playback
2 nodes
On this page 2
Is Playback Available
FunctionWhether this machine has an audio device that AudioPlayback.Play can use.
Signature
IsPlaybackAvailable() -> Truth
bool IsPlaybackAvailable()
Returns
| Available | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Playback
- Package
- Audio Processing
Play
FunctionPlays a clip through the default audio device, and waits until it has finished.
Signature
Play(audio: AudioBuffer) -> AudioBuffer
AudioBuffer Play(AudioBuffer audio)
Parameters
| name | type | default | description |
|---|---|---|---|
| audio | AudioBuffer | — | The clip to play. |
Returns
| Audio | AudioBuffer |
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