From: Neil R. <no...@co...> - 2006-08-21 18:49:53
|
Neil Roy wrote: > Okay, just to update, I changed my game so now it does the following... > > if (SOUND_ENABLED) { > // Use directx if possible to allow other windows music to be playing > if (install_sound(DIGI_DIRECTX(0), MIDI_NONE, NULL)<0) { > SOUND_ENABLED = FALSE; > MUSIC_ENABLED = FALSE; > } > else if (install_sound(DIGI_AUTODETECT, MIDI_NONE, NULL)<0) { > SOUND_ENABLED = FALSE; > MUSIC_ENABLED = FALSE; > } > } > > Look okay? It works for me and uses DirectX by default. I think > allegro should use directx by default. oops, just noticed a new error... that should be... if (SOUND_ENABLED) { // Use directx if possible to allow other windows music to be playing if (install_sound(DIGI_DIRECTX(0), MIDI_NONE, NULL)<0) { if (install_sound(DIGI_AUTODETECT, MIDI_NONE, NULL)<0) { SOUND_ENABLED = FALSE; MUSIC_ENABLED = FALSE; } } } -- Neil Roy "My general feeling is that computers are doing more harm than good." - Jay Miner (father of the Amiga) |