Cannot stop StockAudioPlayer

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Cannot stop StockAudioPlayer

Postby JARS » November 27th, 2008, 3:35 pm

When StockAudioPlayer is playing and I want to stop it within OnLevel event I get the error:
"Cannot perform this operation while media data is still playing. Reset the device, or wait until the data is finished playing."
I need to stop the audio when level is > 90 so not continue playing.
How can I do this?

Thanks
JARS
Active Member
Active Member
 
Posts: 6
Joined: November 13th, 2008, 12:20 pm

Re: Cannot stop StockAudioPlayer

Postby Kambiz » November 27th, 2008, 4:49 pm

You cannot stop the audio within one of the events. As a solution you can post a message to the form, and stop audio on the message handler.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: Cannot stop StockAudioPlayer

Postby JARS » November 27th, 2008, 5:34 pm

Thanks a lot Kambiz
JARS
Active Member
Active Member
 
Posts: 6
Joined: November 13th, 2008, 12:20 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron