diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-01-13 16:28:15 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-01-13 16:28:15 +0000 |
commit | 2c9bdd7e514a478d3dc17a6b85a12dec20c15fb0 (patch) | |
tree | c79aed89fc63fbc64c7b23d921caea30e0bed3a1 /pjmedia/src/pjmedia-audiodev/pa_dev.c | |
parent | 8cc7aef25ecc698b6fdfa620877f72e6b8dd536f (diff) |
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 (?)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3058 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/pjmedia-audiodev/pa_dev.c')
-rw-r--r-- | pjmedia/src/pjmedia-audiodev/pa_dev.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia-audiodev/pa_dev.c b/pjmedia/src/pjmedia-audiodev/pa_dev.c index 53cca042..095f7725 100644 --- a/pjmedia/src/pjmedia-audiodev/pa_dev.c +++ b/pjmedia/src/pjmedia-audiodev/pa_dev.c @@ -30,6 +30,11 @@ #define THIS_FILE "pa_dev.c" #define DRIVER_NAME "PA" +/* Enable call to PaUtil_SetDebugPrintFunction, but this is not always + * available across all PortAudio versions (?) + */ +/*#define USE_PA_DEBUG_PRINT */ + struct pa_aud_factory { pjmedia_aud_dev_factory base; @@ -404,6 +409,7 @@ static int PaRecorderPlayerCallback( const void *input, return rc; } +#ifdef USE_PA_DEBUG_PRINT /* Logging callback from PA */ static void pa_log_cb(const char *log) { @@ -415,6 +421,7 @@ static void pa_log_cb(const char *log) */ typedef void (*PaUtilLogCallback ) (const char *log); void PaUtil_SetDebugPrintFunction(PaUtilLogCallback cb); +#endif /* @@ -442,7 +449,9 @@ static pj_status_t pa_init(pjmedia_aud_dev_factory *f) PJ_UNUSED_ARG(f); +#ifdef USE_PA_DEBUG_PRINT PaUtil_SetDebugPrintFunction(&pa_log_cb); +#endif err = Pa_Initialize(); |