I've decided that it's time to stop using Allegro 4(.2x) and upgrade to Allegro 5(.0.4). I've checked the examples and demos and everything seems pretty neat, however there are a few questions now when it comes to code upgrade:
1. Playing midi-files?
I don't see a midi-support in A5, no similar function to A4's load_midi(). Is midi no longer supported default? If so, is there a simple library to add to get midi-support?
2. Playing ogg-files?
Is there a built in ogg support in A5? In my A4 projects I used "logg" (or whatever it is called) but it doesn't seem to compile very well in A5.
Does this function replace blit(buffer, screen, 0,0, 0,0, w,h)?
In A4 I used voice_set_priority() to set priority on samples when some samples were not to be stopped when too many samples were played at once. I don't see a similar function in A5, maybe there isn't since there isn't a problem of playing too many samples at once?
5. Sprite fonts
In A4 it was possible to load a font with multicolored characters, like a sprite font (don't know the correct naming of it). Is this still supported by A5? Haven't got as far as the fonts but something I was wondering about.
6. Reading mouse buttons and coordinates in A5
Is this a bad sollution to use as a global function for fetching wether a specific mouse button is pressed or not?
The mouse_state struct is local within the function and each time you want to check the mouse button you do a al_get_mouse_state() call.
7. key[KEY_ENTER] replaced by pressed_keys[ALLEGRO_KEY_ENTER]?
I've tried to replace all my old key[KEY_<id>] with pressed_keys[ALLEGRO_KEY_<id>] but I get build errors on all pressed_keys. I read the Allegro manual and as far as I can see this is how it is supposed to be? Or?
That's all...for now. I'll add more questions as I go on updating my finished A4 project. Someone told me to not upgrade a project but when starting on a new one do the transition from A4 to A5. Starting to see why but I guess this is a good way in learning the new names and parameters of the used functions.