fixed processor load always at 100%
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@156 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
eb109be567
commit
952ca087ce
|
@ -205,7 +205,7 @@ bool DirectSound::init()
|
|||
|
||||
|
||||
if( !theApp.useOldSync ) {
|
||||
if( FAILED( hr = dsbSecondary->QueryInterface( IID_IDirectSoundNotify8, (LPVOID*)&dsbNotify ) ) ) {
|
||||
if( SUCCEEDED( hr = dsbSecondary->QueryInterface( IID_IDirectSoundNotify8, (LPVOID*)&dsbNotify ) ) ) {
|
||||
dsbEvent = CreateEvent( NULL, FALSE, FALSE, NULL );
|
||||
DSBPOSITIONNOTIFY notify[10];
|
||||
for( i = 0; i < 10; i++ ) {
|
||||
|
|
Loading…
Reference in New Issue