Author Topic: playwaveform question.  (Read 403 times)

Mike Burgoon

  • Newbie
  • *
  • Posts: 9
playwaveform question.
« 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

td

  • Tech Support
  • *****
  • Posts: 2661
    • WinBatch
Re: playwaveform question.
« Reply #1 on: March 22, 2018, 09:25:38 am »
Code: Winbatch
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. 
"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
  - Bill Gates