MATLAB Answers

Stop audio from playing using sound()

353 views (last 30 days)
YT
YT on 12 Feb 2019
Answered: Joe V on 27 Jun 2019
Matlab Online (ver R2018b)
I'm playing some audio using sound(y,Fs) but I can't find a way to stop the audio from playing. You can guess that it gets even worse when you (accidentally) execute the command twice (yes it plays the music over eachother instead of replacing it). Refreshing the page is the only option for now.
p.s.
I know you can use audioplayer(y,Fs) for offline versions but it won't work online.

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 12 Feb 2019
sound() can only be interrupted by killing matlab .

  0 Comments

Sign in to comment.

Sign in to answer this question.

Products


Release

R2018b