Still stuck on playing a sound with a player

spencerlearning brian at spencerlearning.com
Tue Dec 17 19:15:34 EST 2013


Graham Samuel-4 wrote
> It seems I lack instructions for playing MP3s from beginning to end on a
> Mac: before I started this, I thought it would be extremely simple and
> indeed idiot-proof. I guess I was wrong, or I am even more mentally
> challenged that I normally allow for.
> 
> Is anyone using MP3 sounds in a desktop app, and if so, what is the
> idiot-proof method?

Here is the code I use for simple playing of an mp3 file:

   put "/Users/Brian/Desktop/mp3file.mp3" into tSoundFile
   stop player "player"  
   set the fileName of player "player" to tSoundFile
   set the currentTime of player "player" to 0
   start player "player" of this card

Hope it helps.




-----
Brian Spencer
Spencer Learning
http://spencerlearning.com 
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Still-stuck-on-playing-a-sound-with-a-player-tp4673825p4673874.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the Use-livecode mailing list