I want to use allegro library for playing wav file and nothing else. But as my program starts my cmd window goes out of focus to allegro window. Is there any way to disable allegro window?
Even though i am new to allegro, the examples seem to contain a no display example named "ex_nodisplay.c".
Documentation & Examples
° Examples: Source & Windows Binaries
Im using A4 and I cant find example for that in examples folder of A4.
What about skipping the windows init part.
Normal behaviour is prompting to command.
All I do is allegro_init and install_sound.
You need to use install_allegro(SYSTEM_NONE , &errno , atexit); and then initialize the audio drivers and then you can load wavs and oggs I believe. That's with Allegro 4.4.2 at least. It returns zero if successful.
Thanks! That worked!
Edit: but now sound does not work. What to use instead install_sound(); ?