Page 1 of 1

AudioClip play great on my computer, But Bad

Posted: Sun Nov 03, 2013 3:34 pm
by DR White
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

Re: AudioClip play great on my computer, But Bad

Posted: Sun Nov 03, 2013 3:42 pm
by Klaus
HI David,

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


Best

Klaus

Re: AudioClip play great on my computer, But Bad

Posted: Sun Nov 03, 2013 4:19 pm
by DR White
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

Re: AudioClip play great on my computer, But Bad

Posted: Sun Nov 03, 2013 4:42 pm
by Klaus
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?

Re: AudioClip play great on my computer, But Bad

Posted: Sun Nov 03, 2013 7:10 pm
by DR White
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.

Re: AudioClip play great on my computer, But Bad

Posted: Sun Nov 03, 2013 7:27 pm
by Klaus
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"

Re: AudioClip play great on my computer, But Bad

Posted: Sun Nov 03, 2013 7:45 pm
by DR White
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.

Re: AudioClip play great on my computer, But Bad

Posted: Sun Nov 03, 2013 7:48 pm
by Klaus
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.