Page 1 of 1

TStockaudioplayer on stop event?

PostPosted: June 18th, 2004, 12:10 am
by Terabyte
Hi,
There doesnt seem to be a way of detecting when somthing in the TStockaudioplayer stock section has stoped playing.

I really need to know this as when the playback stopsm some buttons need to be enabled and disabled accordingly.

Is there no way to detect when the storaged item has stoped playing (by reaching the end of the file)

PostPosted: June 18th, 2004, 8:00 am
by Kambiz
Do you mean the OnDeactivate event doesn't work?

sorry

PostPosted: June 18th, 2004, 12:09 pm
by Terabyte
oh rite.. so object deactivate is the equivilent of when the sound has stopped. is that right?

PostPosted: June 18th, 2004, 12:21 pm
by Kambiz
Yes! When playing/recording is stopped, the component closes the handle of audio device and raises the OnDeactivate event.

PostPosted: June 18th, 2004, 6:20 pm
by Terabyte
wow... hehe so i just found out :D:D:D thanks alot :D:D:D:D