Mail Archives: djgpp/1998/03/25/19:25:30
I just noticed a few strange things with Allegro. Everything seems to
be working ok, but I decided to add in code to check for errors upon
initializing the mouse, sound, graphics, etc. The midi sound plays fine
and the graphics mode is initialized correctly (I use AUTO_DETECT for
both), but the following error messages were being reported in
allegro_error:
from:
if (!set_gfx_mode(GFX_AUTODETECT, 800, 600, 0, 0)) {
cout << allegro_error << endl;
// exit(1);
}
I recieve "MODEX only supports 8 bit color"
and from:
if (!install_sound(DIGI_AUTODETECT, MIDI_AUTODETECT, NULL)) {
cout << allegro_error << endl;
// exit(1);
}
I recieve "DIGMID patch set not found"
But in both cases, the graphics properly initializes to 800x600 and the
midi works (though it doesn't sound very good, I must admit).
Why are set_gfx_mode() and install_sound() returning error values? Even
if it couldn't use DIGMID or MODEX, that should hardly be an error for
"AUTO_DETECT" if it eventually *does* detect *something*...?
Am I missing something?
Thanks,
Dan Chak
chakster AT geocities DOT com
- Raw text -