Changeset 320 for pjproject/trunk/pjmedia/src/pjmedia/nullsound.c
- Timestamp:
- Mar 16, 2006 2:24:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/nullsound.c
r121 r320 19 19 #include <pjmedia/sound.h> 20 20 #include <pj/assert.h> 21 22 #if defined(PJMEDIA_HAS_NULL_SOUND) && PJMEDIA_HAS_NULL_SOUND!=0 21 23 22 24 static pj_snd_dev_info null_info = … … 46 48 } 47 49 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) 50 PJ_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) 52 58 { 53 59 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); 55 64 PJ_UNUSED_ARG(rec_cb); 56 65 PJ_UNUSED_ARG(user_data); 57 return (void*)1; 66 67 *p_snd_strm = (void*)1; 68 69 return PJ_SUCCESS; 58 70 } 59 71 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) 72 PJ_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 ) 64 80 { 65 81 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); 67 86 PJ_UNUSED_ARG(play_cb); 68 87 PJ_UNUSED_ARG(user_data); 69 return (void*)1; 88 89 *p_snd_strm = (void*)1; 90 91 return PJ_SUCCESS; 70 92 } 71 93 … … 92 114 return PJ_SUCCESS; 93 115 } 116 117 118 #endif /* PJMEDIA_HAS_NULL_SOUND */
Note: See TracChangeset
for help on using the changeset viewer.