Sample Instances and Mixers
I am having a problem with sample instances.
I tried to play the sample instance by using this code.
The program will start up fine but then an error message saying allegro audio test.exe has stopped working.
I then ran it in debug mode and found out that al_get_default_mixer() was causing the program to crash.
Then I tried to make a mixer with this code.
When I ran this code It did not crash but the song was not played.
With that said what did I do wrong with this code?
al_reserve_samples is used for the default mixer and is not required if you use your own mixer, I think.
If you're trying to use your own mixer, you must first create an ALLEGRO_VOICE and attach your mixer to it.
Thread #612698. Printed from Allegro.cc
It work perfectly now.