Changeset 1662 for pjproject/trunk
- Timestamp:
- Jan 4, 2008 5:57:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/pasound.c
r1638 r1662 62 62 pjmedia_snd_play_cb play_cb; 63 63 64 pj_uint32_t timestamp; 64 pj_uint32_t play_timestamp; 65 pj_uint32_t rec_timestamp; 65 66 pj_uint32_t underflow; 66 67 pj_uint32_t overflow; … … 90 91 pj_status_t status; 91 92 93 pj_assert(frameCount == stream->samples_per_frame * stream->channel_count); 94 92 95 PJ_UNUSED_ARG(output); 93 96 PJ_UNUSED_ARG(timeInfo); … … 111 114 ++stream->overflow; 112 115 113 stream-> timestamp += frameCount;114 115 status = (*stream->rec_cb)(stream->user_data, stream-> timestamp,116 stream->rec_timestamp += frameCount; 117 118 status = (*stream->rec_cb)(stream->user_data, stream->rec_timestamp, 116 119 (void*)input, 117 120 frameCount * stream->bytes_per_sample * … … 138 141 stream->channel_count; 139 142 143 pj_assert(frameCount == stream->samples_per_frame * stream->channel_count); 144 140 145 PJ_UNUSED_ARG(input); 141 146 PJ_UNUSED_ARG(timeInfo); … … 159 164 ++stream->overflow; 160 165 161 stream-> timestamp += frameCount;162 163 status = (*stream->play_cb)(stream->user_data, stream-> timestamp,166 stream->play_timestamp += frameCount; 167 168 status = (*stream->play_cb)(stream->user_data, stream->play_timestamp, 164 169 output, size); 165 170
Note: See TracChangeset
for help on using the changeset viewer.