Forward slashes break the audio codec system
roger levy

While trying to track down why I was unable to stream an .IT and an .XM file but .OGG's were OK, I tried changing the forward slashes (/) to back slashes (\), and everything works now. (Hopefully I didn't get those mixed up)

Stranger still, the bug seems to disable the ability to stream any more files after the first tracker module specified using forward slashes.

Don't know if this is universal, but I am experiencing it on Windows.

UPDATE: Things are getting weirder ... now just my .IT test file does not play, and throws an exception.

Chris Katko

What OS?

What specific Allegro version?

roger levy

Windows 10, 5.2.3

Update: I cannot play any .IT files. Which is bad because converting doesn't seem possible for all the songs I plan on using - end up with glitches.

Update #2: I've had enough of Allegro's Audio API in general; it is so hard to use. Switching to FMOD - got up and running and playing IT files in a matter of minutes.

SiegeLord

Err... were those slashes in the paths you passed to al_load_audio_stream and such? It just uses the file routines, there shouldn't be any filetype specific difference.

I've had enough of Allegro's Audio API in general; it is so hard to use. Switching to FMOD - got up and running and playing IT files in a matter of minutes.

That's the nice thing about it being an addon, don't even need to link it if you don't want it.

roger levy

None of what I was experiencing made any sense and usage is so complicated I was second guessing myself at every turn. Glad to be rid of it.

I am still keeping the old code around in my engine for people who don't want to deal with FMOD licensing.

Thread #616985. Printed from Allegro.cc