Only playing white noise

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
grovecat
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 99
Joined: Thu Aug 04, 2011 10:32 am

Only playing white noise

Post by grovecat » Mon Jul 30, 2012 10:01 am

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.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Only playing white noise

Post by jmburnod » Mon Jul 30, 2012 11:48 am

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
https://alternatic.ch

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Only playing white noise

Post by jmburnod » Mon Jul 30, 2012 11:51 am

On Klaus's explanation about mp3 here:

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

grovecat
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 99
Joined: Thu Aug 04, 2011 10:32 am

Re: Only playing white noise

Post by grovecat » Mon Jul 30, 2012 1:02 pm

Thanks guys

That explains the problem.

Cheers
Don

Post Reply