MATLAB Answers

YT
0

Stop audio from playing using sound()

Asked by YT
on 12 Feb 2019
Latest activity Answered by 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.

Products


Release

R2018b

2 Answers

Answer by Walter Roberson
on 12 Feb 2019
 Accepted Answer

sound() can only be interrupted by killing matlab .

  0 Comments

Sign in to comment.