WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: pguild on September 01, 2020, 08:55:19 PM

Title: Playing .wav files
Post by: pguild on September 01, 2020, 08:55:19 PM
I used to be able play wav files with Winbatch, but now I get a nice silence and a returned code indicating success.
I'm seeking to play .wav file

Here's the code:
fn = "C:\Users\Administrator\Downloads\t_Power Habits\Track-Your-Progress.wav"
rc = PlayWaveform(fn, 0)
Message("PlayWaveForm return code",rc)

I can play the file manually with VLC.
Title: Re: Playing .wav files
Post by: td on September 02, 2020, 07:03:14 AM
Too many missing details to offer any advice but I can say that the function works on my workstation running Windows 10.

According to MSFT, "The specified sound must fit in available physical memory and be playable by an installed waveform-audio device driver. " Other than that there are no known issues.