Can't play WAV audio in Windows without Quicktime

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
spencerlearning
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6
Joined: Fri Jan 29, 2010 6:10 pm
Contact:

Can't play WAV audio in Windows without Quicktime

Post by spencerlearning » Fri Jul 09, 2010 12:26 pm

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.

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

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

Post by Curry » Sun Jul 11, 2010 11:06 pm

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.
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

spencerlearning
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6
Joined: Fri Jan 29, 2010 6:10 pm
Contact:

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

Post by spencerlearning » Mon Jul 12, 2010 1:33 am

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.

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

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

Post by Curry » Mon Jul 12, 2010 2:01 am

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.
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

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

Post by Curry » Mon Jul 12, 2010 2:07 am

OK, I looked at some old code...try using play directly with the Wav file path, rather than using a player.
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

Post Reply