diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-05-22 10:28:44 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-05-22 10:28:44 +0000 |
commit | 40af5f63446816cb921e12e3f31f9e46535c6ac7 (patch) | |
tree | ba2b654413e338a36ca8962a469f283e86fde574 /pjmedia | |
parent | 14d568a4cc1f9a06784c2eee7ff8784e0d99d7eb (diff) |
Put back high thread priority in dsound.c
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@469 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r-- | pjmedia/src/pjmedia/dsound.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pjmedia/src/pjmedia/dsound.c b/pjmedia/src/pjmedia/dsound.c index 0b0b2eac..36db101d 100644 --- a/pjmedia/src/pjmedia/dsound.c +++ b/pjmedia/src/pjmedia/dsound.c @@ -462,8 +462,10 @@ static int dsound_dev_thread(void *arg) events[eventCount++] = strm->rec_strm.hEvent; - /* Raise self priority */ - //SetThreadPriority( GetCurrentThread(), THREAD_PRIORITY_HIGHEST); + /* Raise self priority. We don't want the audio to be distorted by + * system activity. + */ + SetThreadPriority( GetCurrentThread(), THREAD_PRIORITY_HIGHEST); /* Calculate bytes per frame */ bytes_per_frame = strm->samples_per_frame * BYTES_PER_SAMPLE; |