AudioClip play great on my computer, But Bad

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

AudioClip play great on my computer, But Bad

Post by DR White » Sun Nov 03, 2013 3:34 pm

AudioClip plays great on my computer, But not at all on any other computer!

I am using LC 6.1.2, windows 7 and my application with Audioclip works great on the LC souce code file and the complied standalone file, as long as it is on my computer (one with the LC software).
But, when I copy the standalone file to the other two windows 7 computers in my house, I get no audio.

I verified that Aiff files are contained in the stack.

Can anyone explain, what could be the problem?

Thanks,

David

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: AudioClip play great on my computer, But Bad

Post by Klaus » Sun Nov 03, 2013 3:42 pm

HI David,

what is the FILENAME of your player?
I guess here lies the problem, if you use an absolute pathname!


Best

Klaus

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: AudioClip play great on my computer, But Bad

Post by DR White » Sun Nov 03, 2013 4:19 pm

Klaus,

I am not using a player, just the AudioClip object.

My code below:

--- set Cheering sound to file
put "cheering" into pSndName

--- For Windows
play empty
put pSndName & ".Aiff" into tPath
play audioClip tPath

Thanks,

David

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: AudioClip play great on my computer, But Bad

Post by Klaus » Sun Nov 03, 2013 4:42 pm

Aha, so yo udo not supply any relative or absolute pathname, and that is the problem!

Where exactly is the sound file located in the standalone?
You do add the file in the standalone builder settings "Copy files", do you?

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: AudioClip play great on my computer, But Bad

Post by DR White » Sun Nov 03, 2013 7:10 pm

Klaus,

I imported my Aiff files into the stack.

I thought that if they were imported into the stack, that they would always be available to the AudioClip object?

So no, I did not add any files in the "Copy Files" part of the standalone setup.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: AudioClip play great on my computer, But Bad

Post by Klaus » Sun Nov 03, 2013 7:27 pm

AHA :D

Sorry, completely did not get it 8-)

What platform are you on, resp. your standalones?
What format exactly is the sound? Samplerate etc...
Is it a compressed AIFF file?

Livecode is extremely picky whith the (too few!) supported format of "play ac xyz"

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: AudioClip play great on my computer, But Bad

Post by DR White » Sun Nov 03, 2013 7:45 pm

Kluas,

The files are .aiff and are uncompressed.

It plays fine in the standalone app on my windows 7 computer that contains the LC software.

It does not play anything on my other windows 7 computer that does mot without LC on it.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: AudioClip play great on my computer, But Bad

Post by Klaus » Sun Nov 03, 2013 7:48 pm

Hmm, then it SHOULD work!

Since internal sounds do not rely on QuickTIme, I have no idea!?
You might want to try an uncompressed WAV file instead of the AIFF.

Post Reply