Page 1 of 1

Only playing white noise

Posted: Mon Jul 30, 2012 10:01 am
by grovecat
I have put a music file called Air.mp3 in the Applications folder and tried to play it with the simplest possible app, having one button as shown below. The files listed in the field "theFiles" show me that the file to play is in fact in the default folder. However, all I get in both the IDE and standalone is three minutes of white noise, corresponding to the three minutes of music actually in the file. It plays normally in Finder preview or in iTunes.

Code: Select all

on mouseUp
   put the files into the field "theFiles"
   play  Air.mp3
end mouseUp
Also, invoking the Beep command produces no sound either. Am I missing something basic?

Running 10.7.4 on an iMac, with LiveCode 5.5.1.

Re: Only playing white noise

Posted: Mon Jul 30, 2012 11:48 am
by jmburnod
Hi Grovecat,

I have the same results with a .mp3 file with command play and using player
I testes .aiff file and they work fine with the same scripts
I am not sound specialist but it seems file mp3. don't work
(OSX 10.6.8 LiveCode 5.02).
I will test it with Lion and LiveCode 5.5.1

Best regards

Jean-Marc

Re: Only playing white noise

Posted: Mon Jul 30, 2012 11:51 am
by jmburnod
On Klaus's explanation about mp3 here:

http://forums.runrev.com/phpBB2/viewtop ... mp3#p57677

Re: Only playing white noise

Posted: Mon Jul 30, 2012 1:02 pm
by grovecat
Thanks guys

That explains the problem.

Cheers
Don