Audio Drag & Drop

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Damlimey
Posts: 31
Joined: Sun May 31, 2009 10:56 am
Location: Dorset, UK

Audio Drag & Drop

Post by Damlimey » Mon Jun 01, 2009 6:01 pm

Hi there,

Actually, I have two things I want to ask. Does anybody know if it is possible to drag an audio file and drop it on a button to load it ready for play? Also, If I have several buttons loaded with tracks ready to play, how do I get runtime to allocate an available player assuming I have more than one player in the stack?

Thanks in advance for any help,

G

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4036
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Post by bn » Mon Jun 01, 2009 7:32 pm

G,

for drag and drop look for example

http://www.sosmartsoftware.com/?r=revol ... ciels&l=en
look for #024 Managing drag and drop #2
and
#010 How to manage drag and drop for files and folders
description
How to manage drag and drop for multiple files and/or folders, how to know the right kind of data for each file and how to display this data in a field, an image or a player.
for audio you might look at:
http://revolution.byu.edu/indexgeneric.php

Generally you set the filename of a player to an audio file and then you
start player "yourPlayerName"
look up player in the dictionary and the pdf
So I dont know what you mean by having loaded a button.
I would store the pathnames of your audio files in field for example and then from a button you could set the filename of a player to line x of field y and then start the player. When the player is done it sends the message playStopped, you could then start the next audio file.
many ways to do this.

regards
Bernd

Damlimey
Posts: 31
Joined: Sun May 31, 2009 10:56 am
Location: Dorset, UK

Thank you

Post by Damlimey » Tue Jun 02, 2009 8:53 am

Thank you for that, you've lead me to a very useful resource.

G

Post Reply

Return to “Multimedia”