# Mixer.pm
#
# a SDL module for manipulating the SDL_mixer lib.
-#
+#
# Copyright (C) 2000,2002 David J. Goehrig
+# Copyright (C) 2009 Kartik Thakore
package SDL::Mixer;
use strict;
return SDL::MixVolumeMusic($volume);
}
+
sub halt_channel ($$) {
my ($self,$channel) = @_;
return SDL::MixHaltChannel($channel);
return SDL::MixPlaying($channel);
}
+sub mix_volume_chunk($$$) {
+ my ($self, $chunk, $volume) = @_;
+ return SDL::MixVolumeChunk($chunk, $volume);
+}
+
sub playing_music () {
return SDL::MixPlayingMusic();
}