Matlab cant play .wav file twice
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I'mwriting an app, and i want to play an created audiofile in this app.
The file is created by audiowrite, after it gets overworked by my fuzz function.
The funny thins is, matlab played the sound once, and after that, it always says, Undefined fucntion play for input arguments of type double.....
here the picture.
What can I do?
If I play the file with sound, it works fine,
but i want to play it and then stop it with two buttons made.
![Bildschirmfoto 2019-04-03 um 12.42.10.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211812/Bildschirmfoto%202019-04-03%20um%2012.42.10.png)
3 个评论
Jan
2019-4-3
编辑:Jan
2019-4-3
Please post the code as text and not as screenshot. The code fails in line 123. You have posted screen shots for the 493 ff and 137 ff. Why do you think, that these screenshots help to understand the problem?
"'double' was added by me after gettting the problem." - where did you add 'double' for what reason?
Which play function do you expect to play a double array? The sound command does, but why do you think there is a play function also?
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!