33.3.1 Playback

The following methods are used to control player playback.

 
: play (player)
: play (player, start)
: play (player, [start, end])

Play audio stored in the audioplayer object player without blocking.

If the optional argument start is provided, begin playing start samples in to the recording.

If the optional argument end is provided, stop playing at end samples into the recording.

See also: @audioplayer/playblocking, @audioplayer/pause, @audioplayer/stop, @audioplayer/audioplayer.

 
: playblocking (player)
: playblocking (player, start)
: playblocking (player, [start, end])

Play audio stored in the audioplayer object player with blocking (synchronous I/O).

If the optional argument start is provided, begin playing start samples into the recording.

If the optional argument end is provided, stop playing at end samples into the recording.

See also: @audioplayer/play, @audioplayer/pause, @audioplayer/stop, @audioplayer/audioplayer.

 
: pause (player)

Pause playback of audioplayer player.

See also: @audioplayer/resume, @audioplayer/stop, @audioplayer/audioplayer.

 
: resume (player)

Resume playback for the paused audioplayer object player.

See also: @audioplayer/pause, @audioplayer/stop, @audioplayer/audioplayer.

 
: stop (player)

Stop playback of the audioplayer player and reset relevant variables to their initial values.

See also: @audioplayer/pause, @audioplayer/resume, @audioplayer/audioplayer.

 
: tf = isplaying (player)

Return true if the audioplayer object player is currently playing back audio and false otherwise.

See also: @audioplayer/pause, @audioplayer/audioplayer.