Ignore:
Timestamp:
Mar 23, 2006 1:15:59 PM (18 years ago)
Author:
bennylp
Message:

Changed sound device framework to allow opening bidirectional streams from one device

File:
1 edited

Legend:

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

    r321 r352  
    4848} 
    4949 
    50 PJ_DEF(pj_status_t) pjmedia_snd_open_recorder( int index, 
     50PJ_DEF(pj_status_t) pjmedia_snd_open_rec( int index, 
    5151                                          unsigned clock_rate, 
    5252                                          unsigned channel_count, 
     
    9292} 
    9393 
     94PJ_DEF(pj_status_t) pjmedia_snd_open( int rec_id, 
     95                                      int play_id, 
     96                                      unsigned clock_rate, 
     97                                      unsigned channel_count, 
     98                                      unsigned samples_per_frame, 
     99                                      unsigned bits_per_sample, 
     100                                      pjmedia_snd_rec_cb rec_cb, 
     101                                      pjmedia_snd_play_cb play_cb, 
     102                                      void *user_data, 
     103                                      pjmedia_snd_stream **p_snd_strm) 
     104{ 
     105    PJ_UNUSED_ARG(rec_id); 
     106    PJ_UNUSED_ARG(play_id); 
     107    PJ_UNUSED_ARG(clock_rate); 
     108    PJ_UNUSED_ARG(channel_count); 
     109    PJ_UNUSED_ARG(samples_per_frame); 
     110    PJ_UNUSED_ARG(bits_per_sample); 
     111    PJ_UNUSED_ARG(rec_cb); 
     112    PJ_UNUSED_ARG(play_cb); 
     113    PJ_UNUSED_ARG(user_data); 
     114 
     115    *p_snd_strm = (void*)1; 
     116 
     117    return PJ_SUCCESS; 
     118} 
     119 
     120 
    94121PJ_DEF(pj_status_t) pjmedia_snd_stream_start(pjmedia_snd_stream *stream) 
    95122{ 
Note: See TracChangeset for help on using the changeset viewer.