Hi Brian,
Did you set the EventInterests before adding the event handler?
If so, probably this is the cause, after some debugging, I found the COM
object SpVoice will reset EventInterests property when there is an event
added, and the AudioLevel event is by default not be notified.
To workaround this problem, you may set the EventInterests property to
include the SVEAudioLevel event after adding all the event handlers.
Does ie resolve your problem?
Please feel free to reply this thread if you still have problem on this
issue, and it would be helpful if you could make a simple sample to
reproduce this problem, so that we can have a better understanding about
the actual scenario in your program.
Thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.
Brian Long - 02 Jun 2004 09:59 GMT
> Hi Brian,
Hello
> Did you set the EventInterests before adding the event handler?
Er. Yes I did
> If so, probably this is the cause, after some debugging, I found the COM
> object SpVoice will reset EventInterests property when there is an event
> added, and the AudioLevel event is by default not be notified.
>
> To workaround this problem, you may set the EventInterests property to
> include the SVEAudioLevel event after adding all the event handlers.
Beautiful. That's had me stumped for ages. Thanks for that
> Does ie resolve your problem?
Yes indeed
- Brian Long