play sound command?

Klaus major-k klaus at major-k.de
Thu Sep 15 05:51:07 EDT 2016


Hi Bill,

> Am 15.09.2016 um 11:02 schrieb panagiotis merakos <panos.merakos at livecode.com>:
> 
> Hi Bill,
> 
> Audio clips cannot be .mp3. The supported formats, according to the
> dictionary entry for "audioClip" are:
> 
> *Audio clips can be in WAV, AIFF, or AU format*

UNCOMPRESSED aiff and wav files, to be precise!

> I agree with you that the player object has many more capabilities. The
> only advantage of audioClips is that you can store the sound *in the stack*:
> 
> *Unlike a player, an audio clip contains the sound that it plays. This
> increases the memory required by your stack, because the sound data is
> loaded into memory along with the rest of the stack whenever the stack file
> is open. However, it prevents the sound from being accidentally separated
> from the stack file and lost.*
> 
> Best regards,
> Panos
> --
> 
> On Thu, Sep 15, 2016 at 4:45 AM, William Prothero <prothero at earthednet.org>
> wrote:
> 
>> Folks:
>> Just wondering about playing sound with 8.1. I assume that using the video
>> player control is the way to do it. But, I tried the Play “audioclip” fName
>> command with an mp3 audio and it just gave me noise. The video player
>> control works fine. But, I just want to ask, or point out, whether this is
>> a bug in the play command, or whether it is just something left over in the
>> documentation. The dictionary give an example of aiff file, but doesn’t
>> mention restrictions on what format can be played.
>> 
>> Also, the command to stop playing is confusing. The dictionary says the
>> syntax is:
>> stop [playing] {player | videoclip | audioClip}
>> 
>> This doesn’t work and you need to use:
>> play "audioClip" stop
>> 
>> Just wondering and in the interests of accurate documentation, mentioning
>> this.
>> 
>> The online lesson at:
>> http://lessons.livecode.com/m/4071/l/25230-play-sounds#!prettyPhoto <
>> http://lessons.livecode.com/m/4071/l/25230-play-sounds#!prettyPhoto>
>> is ok, though.
>> 
>> I’m wondering, with the player object, whether this feature is even needed.
>> 
>> Best
>> Bill

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list