Ticket #504: ticket504.patch
File ticket504.patch, 1.3 KB (added by nanang, 16 years ago) |
---|
-
pjmedia/src/pjmedia/pasound.c
90 90 pjmedia_snd_stream *stream = (pjmedia_snd_stream*) userData; 91 91 pj_status_t status; 92 92 93 pj_assert(frameCount == stream->samples_per_frame * stream->channel_count);93 pj_assert(frameCount * stream->channel_count == stream->samples_per_frame); 94 94 95 95 PJ_UNUSED_ARG(output); 96 96 PJ_UNUSED_ARG(timeInfo); … … 140 140 unsigned size = frameCount * stream->bytes_per_sample * 141 141 stream->channel_count; 142 142 143 pj_assert(frameCount == stream->samples_per_frame * stream->channel_count);143 pj_assert(frameCount * stream->channel_count == stream->samples_per_frame); 144 144 145 145 PJ_UNUSED_ARG(input); 146 146 PJ_UNUSED_ARG(timeInfo); -
pjsip-apps/src/samples/recfile.c
41 41 42 42 /* Configs */ 43 43 #define CLOCK_RATE 44100 44 #define SAMPLES_PER_FRAME (CLOCK_RATE * 20 / 1000)45 44 #define NCHANNELS 2 45 #define SAMPLES_PER_FRAME (NCHANNELS * (CLOCK_RATE * 10 / 1000)) 46 46 #define BITS_PER_SAMPLE 16 47 47 48 48