Page 1 of 1
[Implemented] IsPlaying ( #Sound )
Posted: Wed Dec 29, 2004 10:41 am
by HeX0R
This would be very handy for checking if a sound is still playing.
Re: IsPlaying ( #Sound )
Posted: Thu Aug 28, 2008 4:55 pm
by luis
HeX0R wrote:This would be very handy for checking if a sound is still playing.
+1
It would be nice to concatenate more than one sound for example.
There are ways, but should be nice to have a cross platform solution.
Use timers and calculate the duration of every sound loaded is not exactly fun!

Posted: Sat Aug 30, 2008 7:42 pm
by luis
An addendum:
the current play function is
Result = PlaySound(#Sound [, Flags])
Would be nice to have, as second parameter before the optional flags, a pointer to a function to be used as callback.
If null (0), no callback, if > 0 the then it would be the address of the function to be called when the sound has been completely played. In the case of looping, the callback should be called after any loop.
Don't know if feasible, but would be nice if the callback function could receive the channel number originally returned in "Result". In this way would be possible to use a single callback to process more the one sound.
Something like that anyway, to facilitate the concatenation of sounds and avoid (in some cases) the need to ask many times IsPlaying() ?
Posted: Sun Jan 25, 2009 2:52 pm
by zikitrake

Someone with a solution for IsPlaying(#IdSound)?
Thank you!
---
EDITED & SOLVED 
---
http://www.purebasic.fr/english/viewtopic.php?t=30023
Re: IsPlaying ( #Sound )
Posted: Thu Feb 18, 2010 10:23 pm
by jamirokwai
HeX0R wrote:This would be very handy for checking if a sound is still playing.
+1
A callback-function when Sound has stopped would be great!
Re: IsPlaying ( #Sound )
Posted: Tue Nov 30, 2010 3:33 am
by Pforzheimer
HeX0R wrote:This would be very handy for checking if a sound is still playing.
+1
This would be very handy for me too

Re: IsPlaying ( #Sound )
Posted: Tue Nov 30, 2010 11:25 am
by blueznl
That is an age old request, I vaguely remember requesting the same thing too... so another +1

Re: IsPlaying ( #Sound )
Posted: Wed Jul 13, 2011 10:43 pm
by DoubleDutch
I've just found this problem too. IsPlaying() would be great (as would the callback system).