Changeset 1848


Ignore:
Timestamp:
Mar 7, 2008 2:32:29 PM (16 years ago)
Author:
bennylp
Message:

Ticket #504: assertion in sound device and recfile sample when using stereo

Location:
pjproject/trunk
Files:
2 edited

Legend:

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

    r1662 r1848  
    9191    pj_status_t status; 
    9292 
    93     pj_assert(frameCount == stream->samples_per_frame * stream->channel_count); 
     93    pj_assert(frameCount * stream->channel_count == stream->samples_per_frame); 
    9494 
    9595    PJ_UNUSED_ARG(output); 
     
    141141                    stream->channel_count; 
    142142 
    143     pj_assert(frameCount == stream->samples_per_frame * stream->channel_count); 
     143    pj_assert(frameCount * stream->channel_count == stream->samples_per_frame); 
    144144 
    145145    PJ_UNUSED_ARG(input); 
  • pjproject/trunk/pjsip-apps/src/samples/recfile.c

    r974 r1848  
    4242/* Configs */ 
    4343#define CLOCK_RATE          44100 
    44 #define SAMPLES_PER_FRAME   (CLOCK_RATE * 20 / 1000) 
    4544#define NCHANNELS           2 
     45#define SAMPLES_PER_FRAME   (NCHANNELS * (CLOCK_RATE * 10 / 1000)) 
    4646#define BITS_PER_SAMPLE     16 
    4747 
Note: See TracChangeset for help on using the changeset viewer.