The way to stop a long sound played with playsnd() is not documented
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
playsnd(filename) plays the sound in an asynchronous way. If the sound is (very) long, there is no documented way to stop it.
PlaySound("") does it. PlaySound() is an internal called by playsnd().
In Scilab 5.5.2,
playsnd([]) also does it but displays a warning:
-->playsnd([])
Warning: file 'TMPDIR\_playsnd_.wav' already opened in Scilab.
In Scilab 6.0.x,
playsnd([]) yields some operation +-[] warnings:
--> playsnd([])
operation +: Warning adding a matrix with the empty matrix will give an empty matrix result.
operation -: Warning adding a matrix with the empty matrix will give an empty matrix result.
playsnd([]) should be fixed and documented.
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
// Download https://lasonotheque.org/detail-1162-homme-siffle-une-melodie.html .wav
y = wavread("homme_qui_siffle_1mn20.wav");
playsnd(y)
sleep(10000)
PlaySound("")
playsnd(y)
sleep(10000)
playsnd([])
OTHER INFORMATION:
------------------
Still in Scilab 6.0.2