Continuous Replay and Filter

Continuous Replay and Filter. Added a test main for people to easily test their filters.
This commit is contained in:
Darell Chua Yun Da
2021-12-02 13:44:57 +08:00
parent eb6b9aaaa8
commit 6c7aa76b62
3 changed files with 54 additions and 0 deletions

9
src/play_continuous.m Normal file
View File

@@ -0,0 +1,9 @@
function play_continuous(wave, fs, time)
%play_continuous: Darell Continuously Playing
soundfile = audioplayer(wave,fs);
countmax = time / (length(wave) / fs);
for count = 0:1:countmax %change to counts/while play button active
playblocking(soundfile);
end
end