Re: [AD] Bug in 4.1.15's DirectAMX changes

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


wxprojects@xxxxxxxxxx wrote:
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.

Perhaps this is the problem then? Allegro might be stealing the main buffer away from the other apps, causing them to go silent.

Daniel, could you try to change this? Should be around line 376 of src/win/wdsndmix.c. Change it from DSSCL_WRITEPRIMARY to DSSCL_PRIORITY, then run make and make install again.

- Kitty Cat




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/