If I may, here is a questions for the sound gurus on the list:
This sequence works as expected:
sound(1).play(MyMember)
--a few seconds' play
sound(1).pause() --the playback is paused
--a few seconds' pause
sound(1).play() --playback resumes from where it was paused and plays to
the end
This sequence plays the sound *twice*, contrary to my expectations:
sound(1).queue(MyMember)
sound(1).play() --playback starts
--let it play for a few seconds
sound(1).pause() --sound is paused as expected
--let it sit for a few seconds
sound(1).play()--playback resumes where it was paused, plays to the end and
then plays the whole file again
My conclusion is that the sound(1).play() command (with no argument) not
only resumes the playback, but also adds the same member to the queue, so
subsequently it plays one more time. Yet the Lingo manual to D8 says that
the form sound(X).play() merely starts the playback (i.e. does not queue).
I must be doing something wrong. What?
This is with D 8.5.1. under Win2K. The sound file is an MP3, imported to
the cast as an external member.
What I am trying to achieve is very simple: queue (preload) one MP3 file
and give the user Play and Pause buttons.
Any tips will be appreciated.
Slava
[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!]
- Re: <lingo-l> sound(1).play() queues AND pla... Slava Paperno
- Re: <lingo-l> sound(1).play() queues AN... Colin Holgate
- Re: <lingo-l> sound(1).play() queue... Slava Paperno
- <lingo-l> Shatter effect in dir... Jeremy
- Re: <lingo-l> Shatter effec... Agust�n Mar�a Rodr�guez
- Re: <lingo-l> sound(1).play() q... Agust�n Mar�a Rodr�guez
- Re: <lingo-l> sound(1).play... Slava Paperno
- Re: <lingo-l> sound(1)... Agust�n Mar�a Rodr�guez
- <lingo-l> Movie transp... Jeremy
- Re: <lingo-l> Movi... roy crisman
- RE: <lingo-l> ... Jeremy
