Ignore:
Timestamp:
Jan 13, 2010 4:28:15 PM (14 years ago)
Author:
bennylp
Message:

Ticket #1025: Support for using different PortAudio? installation/path

  • added --with-pa-path configure option
  • remove the use of PaUtil_SetDebugPrintFunction() since this is not always available across all PA versions (?)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/pa_dev.c

    r2740 r3058  
    3131#define DRIVER_NAME     "PA" 
    3232 
     33/* Enable call to PaUtil_SetDebugPrintFunction, but this is not always 
     34 * available across all PortAudio versions (?) 
     35 */ 
     36/*#define USE_PA_DEBUG_PRINT */ 
     37 
    3338struct pa_aud_factory 
    3439{ 
     
    405410} 
    406411 
     412#ifdef USE_PA_DEBUG_PRINT 
    407413/* Logging callback from PA */ 
    408414static void pa_log_cb(const char *log) 
     
    416422typedef void (*PaUtilLogCallback ) (const char *log); 
    417423void PaUtil_SetDebugPrintFunction(PaUtilLogCallback  cb); 
     424#endif 
    418425 
    419426 
     
    443450    PJ_UNUSED_ARG(f); 
    444451 
     452#ifdef USE_PA_DEBUG_PRINT 
    445453    PaUtil_SetDebugPrintFunction(&pa_log_cb); 
     454#endif 
    446455 
    447456    err = Pa_Initialize(); 
Note: See TracChangeset for help on using the changeset viewer.