Ignore:
Timestamp:
Mar 16, 2006 6:52:55 PM (18 years ago)
Author:
bennylp
Message:

Added sound port (sound_port.h/c), and changed sound and RTCP names from pj_* to pjmedia_*

File:
1 edited

Legend:

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

    r320 r321  
    2222#if defined(PJMEDIA_HAS_NULL_SOUND) && PJMEDIA_HAS_NULL_SOUND!=0 
    2323 
    24 static pj_snd_dev_info null_info =  
     24static pjmedia_snd_dev_info null_info =  
    2525{ 
    2626    "Null Device", 
     
    3131 
    3232 
    33 PJ_DEF(pj_status_t) pj_snd_init(pj_pool_factory *factory) 
     33PJ_DEF(pj_status_t) pjmedia_snd_init(pj_pool_factory *factory) 
    3434{ 
    3535    PJ_UNUSED_ARG(factory); 
     
    3737} 
    3838 
    39 PJ_DEF(int) pj_snd_get_dev_count(void) 
     39PJ_DEF(int) pjmedia_snd_get_dev_count(void) 
    4040{ 
    4141    return 1; 
    4242} 
    4343 
    44 PJ_DEF(const pj_snd_dev_info*) pj_snd_get_dev_info(unsigned index) 
     44PJ_DEF(const pjmedia_snd_dev_info*) pjmedia_snd_get_dev_info(unsigned index) 
    4545{ 
    4646    PJ_ASSERT_RETURN(index==0, NULL); 
     
    4848} 
    4949 
    50 PJ_DEF(pj_status_t) pj_snd_open_recorder( int index, 
     50PJ_DEF(pj_status_t) pjmedia_snd_open_recorder( int index, 
    5151                                          unsigned clock_rate, 
    5252                                          unsigned channel_count, 
    5353                                          unsigned samples_per_frame, 
    5454                                          unsigned bits_per_sample, 
    55                                           pj_snd_rec_cb rec_cb, 
     55                                          pjmedia_snd_rec_cb rec_cb, 
    5656                                          void *user_data, 
    57                                           pj_snd_stream **p_snd_strm) 
     57                                          pjmedia_snd_stream **p_snd_strm) 
    5858{ 
    5959    PJ_UNUSED_ARG(index); 
     
    7070} 
    7171 
    72 PJ_DEF(pj_status_t) pj_snd_open_player( int index, 
     72PJ_DEF(pj_status_t) pjmedia_snd_open_player( int index, 
    7373                                        unsigned clock_rate, 
    7474                                        unsigned channel_count, 
    7575                                        unsigned samples_per_frame, 
    7676                                        unsigned bits_per_sample, 
    77                                         pj_snd_play_cb play_cb, 
     77                                        pjmedia_snd_play_cb play_cb, 
    7878                                        void *user_data, 
    79                                         pj_snd_stream **p_snd_strm ) 
     79                                        pjmedia_snd_stream **p_snd_strm ) 
    8080{ 
    8181    PJ_UNUSED_ARG(index); 
     
    9292} 
    9393 
    94 PJ_DEF(pj_status_t) pj_snd_stream_start(pj_snd_stream *stream) 
     94PJ_DEF(pj_status_t) pjmedia_snd_stream_start(pjmedia_snd_stream *stream) 
    9595{ 
    9696    PJ_UNUSED_ARG(stream); 
     
    9898} 
    9999 
    100 PJ_DEF(pj_status_t) pj_snd_stream_stop(pj_snd_stream *stream) 
     100PJ_DEF(pj_status_t) pjmedia_snd_stream_stop(pjmedia_snd_stream *stream) 
    101101{ 
    102102    PJ_UNUSED_ARG(stream); 
     
    104104} 
    105105 
    106 PJ_DEF(pj_status_t) pj_snd_stream_close(pj_snd_stream *stream) 
     106PJ_DEF(pj_status_t) pjmedia_snd_stream_close(pjmedia_snd_stream *stream) 
    107107{ 
    108108    PJ_UNUSED_ARG(stream); 
     
    110110} 
    111111 
    112 PJ_DEF(pj_status_t) pj_snd_deinit(void) 
     112PJ_DEF(pj_status_t) pjmedia_snd_deinit(void) 
    113113{ 
    114114    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.