bugGNU Octave - Bugs: bug #56494, audioplayer sample rate property...

 
 

bug #56494: audioplayer sample rate property change does not affect the audio produced

Submitter:  Deyan <dvd_video>
Submitted:  Fri 14 Jun 2019 07:34:02 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Need Info Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 5.1.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 18 Sep 2019 08:30:46 PM UTC, comment #2: 

Seems like this is just an interpretation difference about when a paused player should respond to commands.  It would be nice to know how Matlab handles this so I'm marking this as "Need Info".

I'm also lowering the priority since there is at least one workaround.

Rik <rik5>
Group administrator
Fri 14 Jun 2019 01:32:50 PM UTC, comment #1: 

Thats only on a paused sound - resume resumes with paused settings

setting the sample rate and calling play on it, works with the new sample rate.


fs=20500;
duration=5;
freq=440;
values=0:1/fs:duration;
y=sin(2*pi* freq*values);

player = audioplayer(y, fs);
printf("play\n");
play(player);

pause(1);
pause(player);

player.SampleRate = 10000;

# no change here
resume(player)

pause(1);
stop(player);

# change applied
play(player);


What does matlab do ?

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

Hello,

Consider the following code:

pause(Object);
Object.SampleRate = Object.SampleRate + UserInput;
resume(Object);


The expected result:
On decreasing the sampling rate, the high-end harmonics to be mirrored in the low-frequency range ( Women will sound like men ) and when increasing the sampling rate the object to process more data at a time ( Chipmunk karaoke effect )

The actual result:
The sampling rate change does not affect the output audio/sound of the player 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 rik5 (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-12-31 mtmiller SummaryAudioplayer sampling rate change does not affect the audio prodiced audioplayer sample rate property change does not affect the audio produced
    2019-09-18 rik5 Priority5 - Normal 3 - Low
        StatusNone Need Info
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code