Roger -

For win64 compatibility, porttime/ptwinmm.c needs to have a few instances
of DWORD changed to DWORD_PTR
the callback function declaration should be
void CALLBACK winmm_time_callback(UINT uID, UINT uMsg, DWORD_PTR dwUser,
DWORD_PTR dw1, DWORD_PTR dw2)

and the call to timeSetEvent should be
timer_id = timeSetEvent(resolution, 1, winmm_time_callback, (DWORD_PTR)
userData, TIME_PERIODIC | TIME_CALLBACK_FUNCTION);


Also, in pm_win/pmwinmm.c, there is a small C syntax error that a strict
compiler will catch.
lines 685 & 693:
EnterCriticalSection(&m->lock);
long new_driver_time = dwParam2;

long new_driver_time needs to be declared before the EnterCriticalSection
call



_______________________________________________
media_api mailing list
media_api@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to