Ignore:
Timestamp:
Feb 14, 2006 9:08:51 PM (18 years ago)
Author:
bennylp
Message:

Ported pjmedia to WinCE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/portaudio/pa_win_ds.c

    r65 r183  
    6868#include "pa_cpuload.h" 
    6969#include "pa_process.h" 
    70  
    7170#include "dsound_wrapper.h" 
    7271 
     
    7675#endif 
    7776 
     77 
     78#include <pj/unicode.h> 
    7879 
    7980#define PRINT(x) /* { printf x; fflush(stdout); } */ 
     
    326327    DSDeviceNameAndGUIDVector *namesAndGUIDs = (DSDeviceNameAndGUIDVector*)lpContext; 
    327328    PaError error; 
     329    PJ_DECL_ANSI_TEMP_BUF(atemp,128) 
    328330 
    329331    (void) lpszDrvName; /* unused variable */ 
     
    353355 
    354356    namesAndGUIDs->items[namesAndGUIDs->count].name = 
    355             DuplicateDeviceNameString( namesAndGUIDs->allocations, lpszDesc ); 
     357            DuplicateDeviceNameString( namesAndGUIDs->allocations,  
     358            PJ_NATIVE_TO_STRING(lpszDesc,atemp,sizeof(atemp))); 
    356359    if( namesAndGUIDs->items[namesAndGUIDs->count].name == NULL ) 
    357360    { 
     
    10241027 
    10251028    /* Let user determine minimal latency by setting environment variable. */ 
     1029#ifdef UNDER_CE 
     1030    hresult = 0; 
     1031#else 
    10261032    hresult = GetEnvironmentVariable( PA_LATENCY_ENV_NAME, envbuf, PA_ENV_BUF_SIZE ); 
     1033#endif 
    10271034    if( (hresult > 0) && (hresult < PA_ENV_BUF_SIZE) ) 
    10281035    { 
Note: See TracChangeset for help on using the changeset viewer.