Hello,

I was trying to build porttime and portmidi on win32 + mingw (with the attached scripts, attached) from trunk, but noticed that some recent changes broke them. I created a patch to fix them (attached). Can anyone please review and check it in?

Atsushi Eno

gcc -mno-cygwin -mwindows -c -o pmwin.o -I ../pm_common -I ../porttime pmwin.c
gcc -mno-cygwin -mwindows -c -o pmwinmm.o -I ../pm_common -I ../porttime 
pmwinmm.c
gcc -mno-cygwin -mwindows -c -o portmidi.o -I ../pm_common -I ../porttime 
../pm_common/portmidi.c
gcc -mno-cygwin -mwindows -c -o pmutil.o -I ../pm_common -I ../porttime 
../pm_common/pmutil.c
dllwrap --target i386-mingw32 --export-all --output-def portmidi.def --implib 
libportmidi.a --driver-name gcc -mno-cygwin -mwindows -I ../pm_common -I 
../porttime pmwin.o pmwinmm.o portmidi.o pmutil.o -lwinmm -L../porttime 
-lporttime -o portmidi.dll
# gcc -mno-cygwin -shared -o porttime.dll -no-undefined -Wl,--kill-at porttime. 
h porttime.c ptwinmm.c -lwinmm
# gcc -shared -mno-cygwin -mwindows -Wl,-soname -Wl,libporttime.so.0 porttime.o 
ptwinmm.o -o libportmidi.so.0.0.0 -lwinmm

gcc -mno-cygwin -mwindows -c porttime.c -o porttime.o
gcc -mno-cygwin -mwindows -c ptwinmm.c -o ptwinmm.o
dllwrap --target i386-mingw32 --export-all  --output-def porttime.def --implib 
libporttime.a --driver-name gcc -mno-cygwin -mwindows -o porttime.dll 
porttime.o ptwinmm.o -lwinmm
Index: pm_win/pmwinmm.c
===================================================================
--- pm_win/pmwinmm.c    (revision 166)
+++ pm_win/pmwinmm.c    (working copy)
@@ -1315,7 +1315,7 @@
            hdr, wMsg, MOM_DONE);
     */
     if (wMsg == MOM_DONE) {
-        MMRETURN ret = midiOutUnprepareHeader(m->handle.out, hdr, 
+        MMRESULT ret = midiOutUnprepareHeader(m->handle.out, hdr, 
                                               sizeof(MIDIHDR));
         assert(ret == MMSYSERR_NOERROR);
     }
@@ -1340,7 +1340,7 @@
     /* printf("streamout_callback: hdr %x, wMsg %x, MOM_DONE %x\n", 
            hdr, wMsg, MOM_DONE); */
     if (wMsg == MOM_DONE) {
-        MMRETURN ret = midiOutUnprepareHeader(m->handle.out, hdr, 
+        MMRESULT ret = midiOutUnprepareHeader(m->handle.out, hdr, 
                                               sizeof(MIDIHDR));
         assert(ret == MMSYSERR_NOERROR);
     }
Index: porttime/ptwinmm.c
===================================================================
--- porttime/ptwinmm.c  (revision 166)
+++ porttime/ptwinmm.c  (working copy)
@@ -64,7 +64,7 @@
 }
 
 
-void Pt_Sleep(long duration)
+void Pt_Sleep(int32_t duration)
 {
     Sleep(duration);
 }
_______________________________________________
media_api mailing list
media_api@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to