[AD] [ alleg-Bugs-1828617 ] Negative parameter in play_sample

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


Bugs item #1828617, was opened at 2007-11-08 22:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1828617&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: Windows
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: alphabetadragon (alphabetadragon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Negative parameter in play_sample

Initial Comment:
Using a negative value in the third parameter (the pan control) of play_sample causes a crash in the Windows version of the library (even under debug library). Haven't tested on other OS.

eg:

play_sample(sample, sfx_volume, -1,  1000, FALSE);

will crash.

Would suggest correction either by:
- Clipping value to the supported range, or
- Checking with ASSERT in the Debug version of the library.



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

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




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