A4 Dont create window at all
Aleksa

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?

Eximius

Even though i am new to allegro, the examples seem to contain a no display example named "ex_nodisplay.c".

https://www.allegro.cc/files/

Documentation & Examples
° Examples: Source & Windows Binaries

Aleksa

Im using A4 and I cant find example for that in examples folder of A4.

#00JMP00

What about skipping the windows init part.

Normal behaviour is prompting to command.

Aleksa

All I do is allegro_init and install_sound.

Edgar Reynaldo

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.

Aleksa

Thanks! That worked!

Edit: but now sound does not work. What to use instead install_sound(); ?

Thread #615174. Printed from Allegro.cc