play sound command?

panagiotis merakos panos.merakos at livecode.com
Thu Sep 15 05:02:40 EDT 2016


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*

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
>
> William Prothero, Ph.D.
> University of California, Santa Barbara, Emeritus
> prothero at earthednet.org
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




-- 
Panagiotis Merakos <panos.merakos at livecode.com>
LiveCode Software Developer

Everyone Can Create Apps <https://livecode.com>



More information about the use-livecode mailing list