W3cubDocs

/Octave

33.3.1 Playback

The following methods are used to control player playback.

play (player)
play (player, start)
play (player, limits)

Play audio stored in the audioplayer object player without blocking.

Given optional argument start, begin playing at start samples in the recording. Given a two-element vector limits, begin and end playing at the number of samples specified by the elements of the vector.

playblocking (player)
playblocking (player, start)
playblocking (player, limits)

Play audio stored in the audioplayer object player with blocking.

Given optional argument start, begin playing at start samples in the recording. Given a two-element vector limits, begin and end playing at the number of samples specified by the elements of the vector.

pause (player)

Pause the audioplayer player.

resume (player)

Resume playback for the paused audioplayer object player.

stop (player)

Stop the playback for the audioplayer player and reset the relevant variables to their starting values.

isplaying (player)

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

© 1996–2018 John W. Eaton
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://octave.org/doc/interpreter/Playback.html