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?
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!