33.3.1 Воспроизведение ¶
Следующие методы используются для управления воспроизведением плеера.
-
: play
(player)¶ -
: play
(player, start)¶ -
: play
(player, [start, end])¶ -
Воспроизведение аудио, хранящегося в объекте audioplayer player, без блокировки.
Если указан необязательный аргумент start, начать воспроизведение с start образцов записи.
Если указан необязательный аргумент end, остановить воспроизведение на end образцах записи.
См. также: @audioplayer/playblocking, @audioplayer/pause, @audioplayer/stop, @audioplayer/audioplayer.
-
: playblocking
(player)¶ -
: playblocking
(player, start)¶ -
: playblocking
(player, [start, end])¶ -
Воспроизведение аудио, хранящегося в объекте audioplayer player, с блокировкой (синхронный ввод-вывод).
Если указан необязательный аргумент start, начать воспроизведение с start образцов записи.
Если указан необязательный аргумент end, остановить воспроизведение на end образцах записи.
См. также: @audioplayer/play, @audioplayer/pause, @audioplayer/stop, @audioplayer/audioplayer.
-
: pause
(player)¶ -
Приостановить воспроизведение аудио плеера player.
См. также: @audioplayer/resume, @audioplayer/stop, @audioplayer/audioplayer.
-
: resume
(player)¶ -
Возобновить воспроизведение для приостановленного объекта audioplayer player.
См. также: @audioplayer/pause, @audioplayer/stop, @audioplayer/audioplayer.
-
: stop
(player)¶ -
Остановить воспроизведение аудио плеера player и сбросить соответствующие переменные до начальных значений.
См. также: @audioplayer/pause, @audioplayer/resume, @audioplayer/audioplayer.
-
:
tf =isplaying(player)¶ -
Возвращает true, если объект audioplayer player в данный момент воспроизводит аудио, и false в противном случае.
См. также: @audioplayer/pause, @audioplayer/audioplayer.
© 1996–2023 The Octave Project Developers
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://docs.octave.org/v9.2.0/Playback.html