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!