Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Using dumb

This thread is locked; no one can reply to it. rss feed Print
Using dumb
xtheunknown0
Member #13,772
November 2011

Hello,

Where is some documentation on dumb and A5?
More specifically, what headers do I include and what does the gcc command look like in order to do something like

dumb_load_xm("foo.xm");

?

TIA,
xtheunknown0

SiegeLord
Member #7,827
October 2006
avatar

Is there a reason why you want to use DUMB directly?

If not, you can just use A5's streaming API to play those files:

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Matthew Leverton
Supreme Loser
January 1999
avatar

You don't need to call any DUMB-specific functions.

Load it with al_load_audio_stream() and then attach it to the mixer via al_attach_audio_stream_to_mixer(). If you use al_reserve_samples(), then you can attach it to the mixer returned by al_get_default_mixer().

Go to: