[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56494] Audioplayer sampling rate change does
From: |
John Donoghue |
Subject: |
[Octave-bug-tracker] [bug #56494] Audioplayer sampling rate change does not affect the audio prodiced |
Date: |
Fri, 14 Jun 2019 09:32:50 -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 |
Follow-up Comment #1, bug #56494 (project octave):
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 ?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56494>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/