At 1:43 PM +0100 9/20/02, you wrote:
>ok Buzz, ive got the tags to be read into memory and the file3 extra to read
>the folder contents,
>now that ive seen how you approched this ive tried to get the info from the
>xtras list (mp3Files) and use that to play
>the tracks but im not getting it right.
>
>If i can get at the info in the mp3Files list then it means the projecter
>can read any folder i deside to burn on disk with it
>and play the tracks, read the tags, all the info is variable but the player
>know whats what.
>
>should i queue the tracks in the startmovie handeler?

I don't think so

>
>This is the behavoiur for the track to play:
>
>global mp3Files

global platChar -- as before, it's needed for building a path

>
>-- queues the linked sound --
>-- tries to set the filename to the new track --doesent work --
>-- returns the name of the second track in the list --
>-- returns the name of the origional track 1 , im especting it to return
>track 2 file name --
>
>on mouseDown me
>     sound(2).queue(member"Song1")

move the queue to AFTER the song assignment

>     set member ("Song1").filename = getat(mp3Files ,2)

you needed to specify a full file-path ...

     set member ("Song1").filename = \
         the moviePath & "mp3s" & platChar & getat(mp3Files ,2)

>     put getat(mp3Files,2)
>     put member ("Song1").filename

these two won't match
- the first one is just the filename, the second is path-filename
- of course, the filename part should be the same in both  :)

move the queue statement here ->

>
>end
>
>
>on mouseup
>    sound(2).play()
>end
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Buzz Kettles
>Sent: 19 September 2002 18:43
>To: [EMAIL PROTECTED]
>Subject: RE: <lingo-l> RE: Id3tags mp3 player question?
>
>
>fixed ANOTHER typo in my original post
>- I should always test my Lingo first!
>(the code below was actually tested)
>
>At 5:36 PM +0100 9/19/02, you wrote:
>>Thanks for the reply but im trying to get the id3tag data from the mp3
>files
>>and this is the only way im aware of ( after reading the help files on
>it)it
>>says that you can only get at the tags by using the preloadbuffer comand?
>do
>>you now of any otherway?
>
>So here's the trick that I use:
>I use a dummy streaming member JUST to get the tags
>I don't actually play the sound through it, I just extract the tags.
>
>
>Here's how it works:
>
>If you haven't already, make your regular sound members into linked members.
>
>-- make a dummy streaming member.
>-- assign sound's filename to the dummy streamer's URL
>-- perform preLoadBuffer() to get the header (tags) into memory
>-- extract the id3Tags
>
>dummyStreamer = new(#swa)
>
>dummyStreamer.URL = member("Song1").filename
>dummyStreamer.preLoadBuffer()
>put dummyStreamer.id3tags into gSong1List
>
>-- repeat to get the other tags ...
>dummyStreamer.stop()   -- so you can reset the URL property
>dummyStreamer.URL = member("Song2").filename
>dummyStreamer.preLoadBuffer()
>put dummyStreamer.id3tags into gSong2List
>
>-- when done, throw away the dummy streaming member
>dummyStreamer.erase()
>
>hth
>
>-Buzz
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
>[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is
>for learning and helping with programming Lingo.  Thanks!]
>
>[To remove yourself from this list, or to change to digest mode, go 
>to http://www.penworks.com/lingo-l.cgi  To post messages to the 
>list, email [EMAIL PROTECTED]  (Problems, email 
>[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
>programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to