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

 
 

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

Submitted by:  Deyan <dvd_video>
Submitted on:  Fri 14 Jun 2019 07:17:22 AM UTC  
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Invalid Assigned to:  None
Originator Name:  Deyan Open/Closed:  Closed
Release:  5.1.0 Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 4 latest changes.

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

    Back to the top


    Powered by Savane 3.5