Commit 6919d787 authored by aymeric's avatar aymeric
Browse files

reduce buffer size

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@701 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent ae42ec41
......@@ -63,8 +63,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
MSFilter *ms_aq_read_new(MSSndCard *card);
MSFilter *ms_aq_write_new(MSSndCard *card);
#define kSecondsPerBuffer 0.04
#define kNumberAudioDataBuffers 5
#define kSecondsPerBuffer 0.02
#define kNumberAudioDataBuffers 4
typedef struct AQData{
int rate;
......@@ -519,7 +519,7 @@ static void aq_put(MSSndCard *card, mblk_t *m){
++d->curWriteBuffer;
}
}
if(d->write_started == FALSE && d->curWriteBuffer == kNumberAudioDataBuffers) {
if(d->write_started == FALSE && d->curWriteBuffer == kNumberAudioDataBuffers-1) {
OSStatus err;
err = AudioQueueStart (
d->writeQueue,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment