Page 1 of 1

Can't play WAV audio in Windows without Quicktime

Posted: Fri Jul 09, 2010 12:26 pm
by spencerlearning
Can Rev play a .wav audio file in Windows without Quicktime? My tests say no. Can this really be true?

Here is a simple test case: A stack with two controls -- a button and a player -- and an external audio file test.wav. Both files are in the same folder.

Button script:

Code: Select all

on mouseUp
   send playsound
end mouseUp
Stack script:

Code: Select all

on openStack
   if the platform is "Win32" then set the dontUseQT to true
end openStack

on playsound
   stop player "player"
   set the fileName of player "player" to "test.wav"
   set the currentTime of player "player" to 0
   start player "player"
end playsound
This fails on both Windows XP and Windows 7 without Quicktime. It works fine on Mac using Quicktime. Interestingly, it works under both versions of Windows if you use an .mp3 file instead of a .wav file. However the .mp3 sound quality is awful on Windows 7.

Am I missing something? Here is my test stack and sound files (.wav and .mp3): http://spencerlearning.com/_temp/soundtest.zip.

Thanks for any help.

Re: Can't play WAV audio in Windows without Quicktime

Posted: Sun Jul 11, 2010 11:06 pm
by Curry
What Rev version are you using? Is this wav file compressed?

In the past I've done a lot of non-QT sound in Windows, such as wav effects + mid music for a game, and typically when testing I would actually uninstall QT on the computer to make absolutely sure it wasn't involved. Non-QT does/did work, I can attest...try some different Rev versions and an uncompressed wav, see what happens.

Re: Can't play WAV audio in Windows without Quicktime

Posted: Mon Jul 12, 2010 1:33 am
by spencerlearning
Curry,

The wav file I used for testing is not compressed. Also, I am not the only one who is unable to play external wav files using a player without QT. See the Rev mailing list here (http://runtime-revolution.278305.n4.nab ... l#a2283979).

However, for me the wav issue is now a moot point because I have converted all my wav files to MP3. For some reason MP3 files will play without QT, including selections, where the wav files would not. So I thought that was the solution for me, since I do want the compression and MP3 files normally maintain good audio quality.

Unfortunately, although the MP3 files sound fine on Windows XP, they sound terrible on Windows 7 without QT. On Windows 7 using QT they sound fine. (BTW I am running Windows 7 on a Mac with VMWare Fusion.) Argh!

Any experience with MP3 files on Windows 7 without QT? I am desperately trying to avoid forcing my customers to install QT on their Windows computers just so they can play basic audio.

Re: Can't play WAV audio in Windows without Quicktime

Posted: Mon Jul 12, 2010 2:01 am
by Curry
All I can say is it "usta" work. :-) And it should work with WAV. This is an ongoing area of interest for me too, so no doubt I'll be looking into it after catching up on current work.

Re: Can't play WAV audio in Windows without Quicktime

Posted: Mon Jul 12, 2010 2:07 am
by Curry
OK, I looked at some old code...try using play directly with the Wav file path, rather than using a player.