bugGNU Octave - Bugs: bug #56494, Audioplayer sampling rate change...

 
 

bug #56494: Audioplayer sampling rate change does not affect the audio prodiced

Submitted by:  Deyan <dvd_video>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

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

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-18 rik5 Priority5 - Normal => 3 - Low
        StatusNone => Need Info
        Operating SystemMicrosoft Windows => Any

    Back to the top


    Powered by Savane 3.5