Audio Files in a Triggered Subsystem?
1 回表示 (過去 30 日間)
古いコメントを表示
I'm trying to create a system where upon recieving an external input, a sound is played. The error message indicates that the sample time should be set to -1 but I cannot find an option to change this for the audio file. Is there a way to accomplish this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/929944/image.png)
0 件のコメント
回答 (1 件)
jibrahim
2022 年 3 月 17 日
Hi Benjamin,
You can't use this audio block in a triggered subsystem. You can try an enabled subsystem though. Both From Multimedia File block and the 'Audio Device Writer' block should work there.
参考
カテゴリ
Help Center および File Exchange で Audio I/O and Waveform Generation についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!