Print Page | Close Window

not receiving HP_EVENT_ASYNC_PLAYBACK_DONE

Printed From: Way2call Communications
Category: Hi-Phone Software Development Kit (SDK)
Forum Name: Hi-Phone DLL
Forum Description: Discussion on the Hi-Phone product family, its DLL, samples and development tools
URL: http://www.way2call.com/forum/forum_posts.asp?TID=21
Printed Date: Apr 20 2024 at 12:45am


Topic: not receiving HP_EVENT_ASYNC_PLAYBACK_DONE
Posted By: gymshoe
Subject: not receiving HP_EVENT_ASYNC_PLAYBACK_DONE
Date Posted: Apr 13 2009 at 9:55pm
Hi,  I am using the w2cUsbM_PlayWaveFile() method and everything was working fine.  I recently upgraded to W2cMdSDK20090408 and now I do not seem to see the HP_EVENT_ASYNC_PLAYBACK_DONE event after the audio file plays.   I am playing the standard c:\windows\media\tada.wav file which is fairly short, I have also tried longer wav files.   I am using a headset and I can hear the wav file play properly. My code performs as little processing as possible when an event is delivered, it just places the event on a queue and returns so as to not tie up the thread from the phone device.  A separate thread processes the events.  I can provide log files or whatever would be useful, not sure if you want that yet.  I also upgraded my hi-phone desktop lite to the latest firmware: 5.03.17



Replies:
Posted By: doronsh
Date Posted: Sep 10 2009 at 7:50pm
Hi Gordon,
 
The 'Playback Done' event is triggered (internally in the Hi-Phone DLL) via
a window message.

The solution is to 'pump messages' .
Note: the 'pumping' thread must be the same thread that called
w2cUsbM_InitializeDriver(..)

We"ll put a note on it in the SDK.

I would appreciate if you can send me a feedback if it works.

Best Regards,
Doronsh



Print Page | Close Window