Hello, I'm a newcomer to Allegro and I'm trying to play an .xm music file with the following code:
The problem is, al_load_audio_stream is returning NULL. I know the file path is correct and I know the audio and acodec Allegro addons are both working because I am able to load and play .wav samples. I understand Allegro 5 uses DUMB to play module files like .xm, and I have the DUMB library installed. Do I need to #include anything or link anything beyond the audio and acodec libraries in order to load and play .xm files? I haven't been able to find any full code examples with this specific format so I'm a little bit lost.
Additionally, I'm not really sure what the second and third parameters of al_load_audio_stream are supposed to be (number of buffers and number of samples, respectively), so I just used values I saw other people using in posts online. Could this be the source of the issue, and if so, how do I determine which values to use with the music file I want?