Ignore:
Timestamp:
Mar 16, 2006 2:24:26 PM (18 years ago)
Author:
bennylp
Message:

Added misc flags and modify Makefiles to allow exclusion of PortAudio? and specific codec during compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/nullsound.c

    r121 r320  
    1919#include <pjmedia/sound.h> 
    2020#include <pj/assert.h> 
     21 
     22#if defined(PJMEDIA_HAS_NULL_SOUND) && PJMEDIA_HAS_NULL_SOUND!=0 
    2123 
    2224static pj_snd_dev_info null_info =  
     
    4648} 
    4749 
    48 PJ_DEF(pj_snd_stream*) pj_snd_open_recorder( int index, 
    49                                              const pj_snd_stream_info *param, 
    50                                              pj_snd_rec_cb rec_cb, 
    51                                              void *user_data) 
     50PJ_DEF(pj_status_t) pj_snd_open_recorder( int index, 
     51                                          unsigned clock_rate, 
     52                                          unsigned channel_count, 
     53                                          unsigned samples_per_frame, 
     54                                          unsigned bits_per_sample, 
     55                                          pj_snd_rec_cb rec_cb, 
     56                                          void *user_data, 
     57                                          pj_snd_stream **p_snd_strm) 
    5258{ 
    5359    PJ_UNUSED_ARG(index); 
    54     PJ_UNUSED_ARG(param); 
     60    PJ_UNUSED_ARG(clock_rate); 
     61    PJ_UNUSED_ARG(channel_count); 
     62    PJ_UNUSED_ARG(samples_per_frame); 
     63    PJ_UNUSED_ARG(bits_per_sample); 
    5564    PJ_UNUSED_ARG(rec_cb); 
    5665    PJ_UNUSED_ARG(user_data); 
    57     return (void*)1; 
     66 
     67    *p_snd_strm = (void*)1; 
     68 
     69    return PJ_SUCCESS; 
    5870} 
    5971 
    60 PJ_DEF(pj_snd_stream*) pj_snd_open_player( int index, 
    61                                            const pj_snd_stream_info *param, 
    62                                            pj_snd_play_cb play_cb, 
    63                                            void *user_data) 
     72PJ_DEF(pj_status_t) pj_snd_open_player( int index, 
     73                                        unsigned clock_rate, 
     74                                        unsigned channel_count, 
     75                                        unsigned samples_per_frame, 
     76                                        unsigned bits_per_sample, 
     77                                        pj_snd_play_cb play_cb, 
     78                                        void *user_data, 
     79                                        pj_snd_stream **p_snd_strm ) 
    6480{ 
    6581    PJ_UNUSED_ARG(index); 
    66     PJ_UNUSED_ARG(param); 
     82    PJ_UNUSED_ARG(clock_rate); 
     83    PJ_UNUSED_ARG(channel_count); 
     84    PJ_UNUSED_ARG(samples_per_frame); 
     85    PJ_UNUSED_ARG(bits_per_sample); 
    6786    PJ_UNUSED_ARG(play_cb); 
    6887    PJ_UNUSED_ARG(user_data); 
    69     return (void*)1; 
     88 
     89    *p_snd_strm = (void*)1; 
     90 
     91    return PJ_SUCCESS; 
    7092} 
    7193 
     
    92114    return PJ_SUCCESS; 
    93115} 
     116 
     117 
     118#endif  /* PJMEDIA_HAS_NULL_SOUND */ 
Note: See TracChangeset for help on using the changeset viewer.