[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56493] Audioplayer object does not start plai
From: |
John Donoghue |
Subject: |
[Octave-bug-tracker] [bug #56493] Audioplayer object does not start plaing after being stopped |
Date: |
Fri, 14 Jun 2019 09:21:07 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763 |
Update of bug #56493 (project octave):
Status: None => Works For Me
_______________________________________________________
Follow-up Comment #1:
The help for resume says:
Resume playback for the paused audioplayer object PLAYER.
You are in a stopped state, not paused state, and so would need to call play
again.
This will not play anything (or a very brief something)
fs=20500;
duration=10;
freq=440;
values=0:1/fs:duration;
y=sin(2*pi* freq*values);
player = audioplayer(y, fs);
play(player);
stop(player);
resume(player);
This will play
fs=20500;
duration=10;
freq=440;
values=0:1/fs:duration;
y=sin(2*pi* freq*values);
player = audioplayer(y, fs);
play(player);
stop(player);
play(player);
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56493>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/