playsnd(filename..) should be supported. playsnd(..) should be able to iterate playing the sound a given number of times
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
playsnd() deserves two improvements:
1) playsnd(filename..) should be supported
---------------------------------------
Currently, playsnd() only accepts an input vector y of normalized sound data.
So when we want to play a sound stored in a file, we must open and read (and close) the sound file out of playsnd().
We must also do not forget clearing y data afterward if we don't need them for anything else after playing.
Accepting directly the file name should be accepted. The file name must have an explicit .au or .wav extension,
in order to route playsnd() accordingly toward wavread() or auread().
2) playsnd() should be able to loop playing a sound a given number of times
------------------------------------------------------------------------
A nbiter optional input should be added as a positive decimal integer