[AD] [ alleg-Bugs-3544737 ] Stream looping doesn't work correctly with mod files

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Bugs item #3544737, was opened at 2012-07-16 12:24
Message generated for change (Tracker Item Submitted) made by siegelord
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3544737&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Addons
Group: 5.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: SiegeLord (siegelord)
Assigned to: Nobody/Anonymous (nobody)
Summary: Stream looping doesn't work correctly with mod files

Initial Comment:
This code:

ALLEGRO_AUDIO_STREAM* stream = al_load_audio_stream("song.xm", 4, 2048);
al_attach_audio_stream_to_mixer(stream, al_get_default_mixer());
al_set_audio_stream_playmode(stream, ALLEGRO_PLAYMODE_LOOP);

Does not result in a looping stream. This works with other file formats. Adding this line after this code works around the issue, but shouldn't be necessary:

al_set_audio_stream_loop_secs(stream, 0.0, al_get_audio_stream_length_secs(stream));

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3544737&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/