Playing .wav files

Started by pguild, September 01, 2020, 08:55:19 PM

Previous topic - Next topic

pguild

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.
www.DogTrainingPsychology.com -- "Don't wish it were easier, wish you were better."  as aphorism by Jim Rohn as quoted in the Kindle Book, GEMS OF WISDOM by Philip Seyer

td

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.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade