Available for a limited time only - £10 off a £20 spend at eXpansys! For more details visit this topic!

Please Log In or Register - it's FREE!

 
Reply to this topicStart new topic
 PInvoke to handle events
Massif
post Jun 23 2008, 14:06
Post #1


Newbie
Group Icon

Group: Posters
Posts: 4
Joined: 3rd June 2008
Member No.: 394,865



I managed to get midi playback working on WM6 using SndPlayAsync. Now I would like to be able to loop the midi. The only way I can see to do this is to detect when the file stops playing and play it again. I believe I might be able to detect the event using SndGetWaitHandle, but I don't know what to do with the event handle once it's retrieved.

CODE
[DllImport("aygshell.dll")]
static extern uint SndGetWaitHandle(IntPtr hSound, ref IntPtr phDoneEvent);


Can anyone tell me how to set up an event handler for this kind of event handle? Or if there is an easier way to loop the midi, that would be preferable.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Topic has attachmentsHow to install and USE .net Compact Framework 3.5 WITHOUT upgrading your ROM.
21 Paul (MVP) 26,279 Today, 09:05
Last post by: dFrag73
No new Topic has attachmentsPaul's complete guide to installing OSX Leopard on your MSI Wind / Advent 4211
Video uploading now...
533 Paul (MVP) 195,138 Today, 07:29
Last post by: SonOfJobs
No New Posts Wifi connection whilst connected to ActiveSync
How?
4 Webreaper 299 Today, 09:35
Last post by: Swampie
No new Topic has attachmentsManila 2D Ported to Omnia
now working
58 Omnia_1 6,544 Today, 10:20
Last post by: Omnia_1
No New Posts (Maybe a) Solution to unbrick your omnia
6 KM 755 Today, 10:44
Last post by: cantarol
No New Posts Sun next to Clock in today screen
How to remove it ???
3 xteph1973 30 Today, 12:53
Last post by: silencer22

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


RSS hit counter Lo-Fi Version Time is now: 6th October 2008 - 13:24


Please visit our 'Plus Partners' - these companies support MoDaCo through 'MoDaCo Plus' - Click Here for more details!

VITO Technology | Slipstream Solutions | Aiko Solutions | PDAMill | Inesoft | SBSH | LingvoSoft | Ruttensoft | Astraware | MadBeetle | Sprite Software

Opera | Westtek | TetraEdge | Z4Soft | KBM Systems | Conduits | Mini Lyrics Magic | Proporta | Semsons | SyncData | Active Kitten | Binaryfish | Textr

SPB Software House | Omega One | OmniSoft | Resco | eSoft Interactive | TenGo | ATEKsoft | imei-check | GpsGate | SplashData | DeveloperOne | monocube

WebIS, home of Pocket Informant, FlexMail and Note2Self

Would your company like to become a 'Plus Partner'? Click Here to contact us!