diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-05-21 22:53:56 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-05-21 22:53:56 +0000 |
commit | 356e8d7f0b931a805c09eb13b80dfb20134dddb1 (patch) | |
tree | 42da93d4b61574613c0c967c345547efe6f2623f /pjmedia | |
parent | 63e7438097ab7086387b1e32541f697eba65dba2 (diff) |
Changed DirectSound not to be too aggressive when capturing frames
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@467 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r-- | pjmedia/src/pjmedia/dsound.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia/dsound.c b/pjmedia/src/pjmedia/dsound.c index ad4a2b4b..0b0b2eac 100644 --- a/pjmedia/src/pjmedia/dsound.c +++ b/pjmedia/src/pjmedia/dsound.c @@ -566,7 +566,8 @@ static int dsound_dev_thread(void *arg) dsound_strm->dwBytePos -= dsound_strm->dwDsBufferSize; dsound_strm->timestamp.u64 += strm->samples_per_frame; - } while (dsound_captured_size(dsound_strm) >= bytes_per_frame); + /* Fetch while we have more than 1 frame */ + } while (dsound_captured_size(dsound_strm) > bytes_per_frame); } } |