This repository has been archived on 2023-12-21. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ece45-project/src/Helper/play_continuous.m
2021-12-10 10:01:30 +08:00

10 lines
286 B
Matlab

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