MATLAB Answers

Stop audio from playing using sound()

219 views (last 30 days)
YT
YT on 12 Feb 2019
Commented: Gabriel Rantung on 4 Apr 2020
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.

Products


Release

R2018b