Way2call telephony device is your ultimate telephony integration solution! |
Waiting for wave files to finish |
Post Reply ![]() |
Author | |
doronsh ![]() Way2call ![]() Joined: Mar 16 2009 Status: Offline Points: 95 |
![]() ![]() ![]() ![]() ![]() Posted: Apr 02 2010 at 12:36pm |
Pump Messages project is available. Please send an email to support@way2call.com , and weâ?Tll send you the project. |
|
![]() |
|
stupid48 ![]() Newbie ![]() Joined: Mar 09 2010 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
It would be great if you guys could expand upon your samples in your SDK. It would be nice to see how to "pump messages" works with your API
|
|
![]() |
|
doronsh ![]() Way2call ![]() Joined: Mar 16 2009 Status: Offline Points: 95 |
![]() ![]() ![]() ![]() ![]() |
Please review the Hi-Phone multiple devices SDK
Console applications does not have a window, and a window message "pump".
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(..) |
|
![]() |
|
jch ![]() Newbie ![]() Joined: Jan 14 2010 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() |
I first created a C# application to answer incoming calls with the hi_phone desktop usb model. I used thread.sleep to wait for the wave file to finish playing before continuing, cheap solution I know, but only had 4 days to get the product finished. now I have two more days to convert my code to work with the multiline maestro. I have all worked out except the thread.sleep is obviously hanging up the app with multiple calls.
Question is, does anyone have some quick sample code or point me in the right direction as to how to wait for one wave file to finish playing before another starts on the same device?
Thanks in advance.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.094 seconds.