help with loading audio clips into a stack
Jon
jbondy at sover.net
Thu Jul 14 16:44:44 EDT 2005
Ban and I finally managed to get a player he likes, but the way I did
it, the audio clips have to reside on the hard drive. As you can read
below, Ban wants the audio data to be stored inside the stack, so users
can't clone it.
The problem is that I don't know how to "suck" an audio clip into a
stack and then tell the player to play it back.
Can anyone else help Ban?
:)
Jon
-------- Original Message --------
Subject: RE: JLBPlayer
Date: Thu, 14 Jul 2005 08:48:27 -0700
From: Ban Nguyen <bann at sunncomm.com>
To: Jon <jbondy at sover.net>
Hi Jon,
This is exactly what I need but the only thing is I don't want user to
play songs from his/her hard drive. I want to import 9 songs in the
stack and they can only play 9 songs, and I don't want them to copy
these songs into there hard drive, because these songs are copyrighted.
What I am doing is : making a standalone application that has several
topics (about, contact, lessons....)each topics has each own substack
and on the main stack I want to have a player displays 9 songs and
continue play until user close the application. User can select from
the song list to play a song he/she wants.
I hope I don't confuse you
Could we modify to make JLBPlayer works like this. Thank you so much
for your help.
Ban
-----Original Message-----
From: Jon [mailto:jbondy at sover.net]
Sent: Wednesday, July 13, 2005 6:05 PM
To: Ban Nguyen
Subject: Re: JLBPlayer
Ban:
Here is a revised version of the stack with a selectable list.
Go into "edit" mode and load the list with the names of whatever files
you want to play
Then when you go into "run" mode, each time you click on a line, the
file with the corresponding name will start to play.
Try this with a few small audio files and see if it is close to what you
want to do.
:)
Jon
Ban Nguyen wrote:
> Very cool, please show me how to do this
>
>
> -------------------------------------------
>
> Ban:
>
> Feel free to contact me off list if you want to pursue this just
between
>
> the two of us.
>
> You could take JLBPlayer and make the following changes to do what you
> want:
>
> 1) make the stack/window taller;
>
> 2) put nine buttons or fields on the taller window
>
> 3) create a MouseUp handler for each button. Each handler plays one
of
>
> the nine audio files, using the same code that I use to load and play
> audio.
>
> :)
>
> Jon
>
More information about the use-livecode
mailing list