Gordon Gidluck | 4 May 2007 20:42
Favicon

Re: WinCE patch

I will fix it right away.

Gordon

----- Original Message ---------------

Subject: Re: [Portaudio] WinCE patch
   From: Benny Prijono <bennylp <at> pjsip.org>
   Date: Fri, 04 May 2007 17:37:03 +0100
     To: gidluck <at> alltel.net
     Cc: portaudio <at> techweb.rfa.org

>Hi Gordon,
>
>ouch! You missed an '#' character in pa_win_wmme.c:138, and this 
>breaks both Windows/CE build.
>
>  -benny
>
>
>Gordon Gidluck wrote:
>> Hi Benny,
>> These changes have just been committed in V19-devel (revision 1197).
>> 
>> Gordon Gidluck
>> http://www.gidluckmastering.com/live2496.html
>> http://live2496.com (forum)
>> 
>> ----- Original Message ---------------
>> 
>> Subject: Re: [Portaudio] WinCE patch
>>    From: Benny Prijono <bennylp <at> pjsip.org>
>>    Date: Fri, 04 May 2007 10:53:53 +0100
>>      To: portaudio <at> techweb.rfa.org
>> 
>>> Hi Ross,
>>>
>>> Any chance we will have the patch applied? (how would you make 
>>> people test it if you don't apply the patch? ;-) ).
>>>
>>> AFAIK it works with CE on both emulator and device, and it shouldn't 
>>> break the main Windows build either (it such as simple patch).
>>>
>>> I need the patch applied because since PA switched to using SVN, I 
>>> synchronize pjsip SVN tree to PA trunk directly rather than having a 
>>> local copy, so without this patch my users won't be able to build 
>>> pjsip for CE. And btw people have been been using PA for CE for 
>>> months now with pjsip, and it works pretty well.
>>>
>>> thanks,
>>>  -benny
>>>
>>> Ross Bencina wrote:
>>>> Hi Bjorn
>>>>
>>>> That's fine. I'm the current maintainer of the WinMME code so I can 
>>>> apply the patch. I'll just need other people to test it.
>>>>
>>>> Ross.
>>>>
>>>>
>>>>
>>>>
>>>> ----- Original Message ----- From: "Bjorn Roche" <bjorn <at> xowave.com>
>>>> To: <portaudio <at> techweb.rfa.org>
>>>> Sent: Wednesday, April 11, 2007 12:00 AM
>>>> Subject: Re: [Portaudio] WinCE patch
>>>>
>>>>
>>>>> Thanks Benny.
>>>>>
>>>>> All: who is the Windows CE person? I'm submitting a ticket and  
>>>>> assigning it to ross for now, but I'm not sure he's the right person.
>>>>>
>>>>> bjorn
>>>>>
>>>>> On Apr 9, 2007, at 5:03 AM, Benny Prijono wrote:
>>>>>
>>>>>> All,
>>>>>>
>>>>>> Attached is a small patch to make PA build on CE.
>>>>>>
>>>>>> cheers,
>>>>>>  -benny
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> Benny Prijono
>>>>>> http://www.pjsip.org
>>>>>> Index: src/os/win/pa_win_util.c
>>>>>> ===================================================================
>>>>>> --- src/os/win/pa_win_util.c (revision 1186)
>>>>>> +++ src/os/win/pa_win_util.c (working copy)
>>>>>>  <at>  <at>  -138,6 +138,10  <at>  <at> 
>>>>>>      }
>>>>>>      else
>>>>>>      {
>>>>>> +#ifndef UNDER_CE
>>>>>>          return timeGetTime() * .001;
>>>>>> +#else
>>>>>> + return GetTickCount() * .001;
>>>>>> +#endif
>>>>>>      }
>>>>>>  }
>>>>>> Index: src/hostapi/wmme/pa_win_wmme.c
>>>>>> ===================================================================
>>>>>> --- src/hostapi/wmme/pa_win_wmme.c (revision 1186)
>>>>>> +++ src/hostapi/wmme/pa_win_wmme.c (working copy)
>>>>>>  <at>  <at>  -112,7 +112,9  <at>  <at> 
>>>>>>  #include <math.h>
>>>>>>  #include <windows.h>
>>>>>>  #include <mmsystem.h>
>>>>>> +#ifndef UNDER_CE
>>>>>>  #include <process.h>
>>>>>> +#endif
>>>>>>  #include <assert.h>
>>>>>>  /* PLB20010422 - "memory.h" doesn't work on CodeWarrior for PC.  
>>>>>> Thanks Mike Berry for the mod. */
>>>>>>  #ifndef __MWERKS__
>>>>>>  <at>  <at>  -131,7 +133,9  <at>  <at> 
>>>>>>
>>>>>>  #include "pa_win_wmme.h"
>>>>>>
>>>>>> -#if (defined(WIN32) && (defined(_MSC_VER) && (_MSC_VER >= 1200))) / 
>>>>>> * MSC version 6 and above */
>>>>>> +#if (defined(UNDER_CE))
>>>>>> +#pragma comment(lib, "Coredll.lib")
>>>>>> +#elif (defined(WIN32) && (defined(_MSC_VER) && (_MSC_VER >=  1200))) 
>>>>>> /* MSC version 6 and above */
>>>>>>  #pragma comment(lib, "winmm.lib")
>>>>>>  #endif
>
>_______________________________________________
>Portaudio mailing list
>Portaudio <at> techweb.rfa.org
>http://techweb.rfa.org/mailman/listinfo/portaudio

Gmane