diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-04-03 10:01:27 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-04-03 10:01:27 +0000 |
commit | 677baeaf767c1fc3a1aada61fa6f7ea9981d52e8 (patch) | |
tree | 3dc00e3a4403c002ca80c338eff25c8f970bb9d9 | |
parent | 36172a516bdefa411c3cb77dfb6d44e07e3383f3 (diff) |
Added some flags during playback buffer creation
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@372 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjmedia/src/pjmedia/dsound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjmedia/src/pjmedia/dsound.c b/pjmedia/src/pjmedia/dsound.c index 352ad3e5..e6ff8ff0 100644 --- a/pjmedia/src/pjmedia/dsound.c +++ b/pjmedia/src/pjmedia/dsound.c @@ -158,8 +158,8 @@ static pj_status_t init_player_stream( struct dsound_stream *ds_strm, /* Set up DSBUFFERDESC structure. */ pj_memset(&dsbdesc, 0, sizeof(DSBUFFERDESC)); dsbdesc.dwSize = sizeof(DSBUFFERDESC); - dsbdesc.dwFlags = DSBCAPS_CTRLVOLUME | DSBCAPS_CTRLPOSITIONNOTIFY; - /* DSBCAPS_GETCURRENTPOSITION2 */ + dsbdesc.dwFlags = DSBCAPS_CTRLVOLUME | DSBCAPS_CTRLPOSITIONNOTIFY | + DSBCAPS_GETCURRENTPOSITION2 | DSBCAPS_GLOBALFOCUS; dsbdesc.dwBufferBytes = buffer_count * bytes_per_frame; dsbdesc.lpwfxFormat = (LPWAVEFORMATEX)&pcmwf; |