fixed processor load always at 100%
This commit is contained in:
parent
5e3902b476
commit
50b9e5ff4d
|
@ -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