|
Using dumb |
xtheunknown0
Member #13,772
November 2011
|
Hello, Where is some documentation on dumb and A5? dumb_load_xm("foo.xm"); ? TIA, |
SiegeLord
Member #7,827
October 2006
|
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: al_install_audio(); al_reserve_samples(1); al_init_acodec_addon(); ALLEGRO_AUDIO_STREAM* stream = al_load_audio_stream("foo.xm", 4, 2048); al_attach_audio_stream_to_mixer(stream, al_get_default_mixer());
"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
Matthew Leverton
Supreme Loser
January 1999
|
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(). |
|