#28 DirectSound Bug

closed
Generic (7)
5
2006-04-21
2006-04-13
Spacy
No

Ieremiou:
"There is a bug which affects all VBA variants of
emulators except for Kode54's (because he fixed it) and
that's when you uncheck "Pause when inactive" the sound
is mute... That isn't suppose to happen.

Is it possible that it may be fixed as well in your
builds Spacy?"

Here's the patch for it:
## DirectSound.cpp ##

bool DirectSound::init()
{
[...]
// Create secondary sound buffer
memset(&dsbdesc, 0, sizeof(DSBUFFERDESC));
dsbdesc.dwSize = sizeof(DSBUFFERDESC);
>>> dsbdesc.dwFlags =
DSBCAPS_GETCURRENTPOSITION2|DSBCAPS_CTRLPOSITIONNOTIFY|DSBCAPS_GLOBALFOCUS;
dsbdesc.dwBufferBytes = soundBufferTotalLen;
dsbdesc.lpwfxFormat = &wfx;
[...]
}

The flag "DSBCAPS_GLOBALFOCUS" was not set.

Discussion

  • Spacy

    Spacy - 2006-04-21
    • assigned_to: kxu --> pokemonhacker
     
  • Pokemonhacker

    Pokemonhacker - 2006-04-21
    • assigned_to: pokemonhacker --> kxu
    • status: open --> closed
     
  • Pokemonhacker

    Pokemonhacker - 2006-04-21

    Logged In: YES
    user_id=785003

    Thanks !

     
  • Pokemonhacker

    Pokemonhacker - 2006-04-21

    Logged In: YES
    user_id=785003

    Thanks !

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks