WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: Mike Burgoon on March 22, 2018, 08:14:00 AM

Title: playwaveform question.
Post by: Mike Burgoon on March 22, 2018, 08:14:00 AM
I am playing a .wav file with playwaveform ("filename", 1).  If I want to stop playing that file, I am trying to use playwaveform (" ", 0) like it says in the help file for that command.  Problem is that it does not stop playing the wav file.

How do I stop playing a wav file that is playing using playwaveform?

Thanks
Title: Re: playwaveform question.
Post by: td on March 22, 2018, 09:25:38 AM
Code (winbatch) Select
PlayWaveform(' ',0)
works just fine on my Windows 10 system.   Are you sure you are passing a space and not just an empty string in the first parameter?  It will not stop the sound unless there is a space between the quotes.