MATLABでの音声の停止方法 How can I stop music using matlab?

2 ビュー (過去 30 日間)
Tatsuya
Tatsuya 2014 年 1 月 3 日
回答済み: Atsushi Matsumoto 2016 年 10 月 21 日
MATLAB上で音声を再生、停止する手段として、audioplayerクラスを使用しています。
一時停止、停止する場合にはpause(obj)、stop(obj)を用いるのですが、これにはo.2秒ほどの処理時間を要します。
できれば、長くとも0.05秒ほどで音声の停止処理を行いたいのですが、他の音声停止方法、もしくは停止に要する処理時間を短くする方法はないでしょうか。 お知恵をお貸しください。
よろしくおねがいします。
  1 件のコメント
Atsushi Matsumoto
Atsushi Matsumoto 2016 年 10 月 21 日
audioplayerの処理時間の測定はどうやって行われているのでしょうか?

サインインしてコメントする。

採用された回答

Atsushi Matsumoto
Atsushi Matsumoto 2016 年 10 月 21 日
DSP System Toolboxをお持ちであれば、dsp.AudioFileReaderとdsp.AudioPlayerを使ってみてはいかがでしょうか?

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Filtering and Enhancement についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by