| View previous topic :: View next topic |
| Author |
Message |
Terabyte Member
Joined: 18 Jun 2004 Posts: 5
|
Posted: 18/06/04 00:10 Post subject: TStockaudioplayer on stop event? |
|
|
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) |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 362
|
Posted: 18/06/04 08:00 Post subject: |
|
|
| Do you mean the OnDeactivate event doesn't work? |
|
| Back to top |
|
 |
Terabyte Member
Joined: 18 Jun 2004 Posts: 5
|
Posted: 18/06/04 12:09 Post subject: sorry |
|
|
| oh rite.. so object deactivate is the equivilent of when the sound has stopped. is that right? |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 362
|
Posted: 18/06/04 12:21 Post subject: |
|
|
| Yes! When playing/recording is stopped, the component closes the handle of audio device and raises the OnDeactivate event. |
|
| Back to top |
|
 |
Terabyte Member
Joined: 18 Jun 2004 Posts: 5
|
Posted: 18/06/04 18:20 Post subject: |
|
|
| wow... hehe so i just found out thanks alot |
|
| Back to top |
|
 |
|