Re: [AD] Bug in 4.1.15's DirectAMX changes |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Hi Chris,
> DX:
> hr = IDirectSound_SetCooperativeLevel(directsound, allegro_wnd,
> DSSCL_PRIORITY);
> AllegMix:
> hr = IDirectSound_SetCooperativeLevel(directsound, allegro_wnd,
> DSSCL_WRITEPRIMARY);
WritePrimary means you want to write to the main buffer. This is flaky on some systems - you need to make sure you've got an actual hardware sound card that supports DirectSound in order for it to work.
> DX:
> desc.dwFlags = DSBCAPS_PRIMARYBUFFER | DSBCAPS_CTRLVOLUME;
> AllegMix:
> desc.dwFlags = DSBCAPS_PRIMARYBUFFER | DSBCAPS_CTRLVOLUME |
> DSBCAPS_STICKYFOCUS;
StickyFocus means that when you click outside of/leave the application the sounds still plays.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |