- Fix bug with TTFSizeText, it actually returns 0 on success [acme]
- Add display_format_alpha [acme]
- Add an example that plays a .WAV sound sample [acme]
+ - Add left/right panning to the mixer [acme]
* v2.2.3.1 Sept 29 2009 Kartik Thakore <thakore.kartik@gmail.com>
- Critical Build.PL fix for META.yml
return SDL::MixPlayingMusic();
}
+sub set_panning {
+ my($self, $channel, $left, $right) = @_;
+ return SDL::MixSetPanning($channel, $left, $right);
+}
+
1;
__END__;
Return true when the music is currently playing.
+=head1 set_panning($channel, $left, $right)
+
+Sets the volume for the left or right channels. To do true panning:
+
+ $mixer->set_panning($channel, $left, 254 - $left);
+
=head1 AUTHORS
David J. Goehrig, basic doc added by Tels <http://bloodgate.com>.
OUTPUT:
RETVAL
+int
+MixSetPanning ( channel, left, right )
+ int channel
+ int left
+ int right
+ CODE:
+ RETVAL = Mix_SetPanning(channel, left, right);
+ OUTPUT:
+ RETVAL
void
MixCloseAudio ()