bugGNU Octave - Bugs: bug #56493, Audioplayer object does not start...

 
 

bug #56493: Audioplayer object does not start plaing after being stopped

Submitter:  Deyan <dvd_video>
Submitted:  Fri 14 Jun 2019 07:17:22 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Deyan Open/Closed:  * Closed
Release:  * 5.1.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 06 Sep 2019 12:18:31 PM UTC, comment #2: 

I'll close this report as invlid as the documentation clearly states that the player should be in "paused" state (not "stopped") for "resume" to have an effect.

Pantxo Diribarne <pantxo>
Group Member
Fri 14 Jun 2019 01:21:07 PM UTC, 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);


John Donoghue <lostbard>
Group Member
Fri 14 Jun 2019 07:17:22 AM UTC, original submission:  

Hello,
Consider the following code when the object is currently running and playing audio:

Pause and resume. The object continues playing audio.

pause(Object);
resume(Object);


Stop and resume. The object is restarted and cannot start playing audio again.

stop(Object);
resume(Object);


Deyan <dvd_video>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by dvd_video (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-06 pantxo StatusWorks For Me Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
        Operating SystemMicrosoft Windows Any
    2019-06-14 lostbard StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code