diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-03-07 14:32:29 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-03-07 14:32:29 +0000 |
commit | ba90068afa793a98c0ec2594565d49f77e79e673 (patch) | |
tree | c174a531acbda5fc57fc3e78119b0e87a943ccc4 /pjsip-apps | |
parent | 9d25d342f4102e6591ec1ffa003dd65572bbc927 (diff) |
Ticket #504: assertion in sound device and recfile sample when using stereo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1848 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps')
-rw-r--r-- | pjsip-apps/src/samples/recfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip-apps/src/samples/recfile.c b/pjsip-apps/src/samples/recfile.c index 1fc68b06..7e8563d3 100644 --- a/pjsip-apps/src/samples/recfile.c +++ b/pjsip-apps/src/samples/recfile.c @@ -41,8 +41,8 @@ /* Configs */ #define CLOCK_RATE 44100 -#define SAMPLES_PER_FRAME (CLOCK_RATE * 20 / 1000) #define NCHANNELS 2 +#define SAMPLES_PER_FRAME (NCHANNELS * (CLOCK_RATE * 10 / 1000)) #define BITS_PER_SAMPLE 16 |