# 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();
}
#
# Copyright (C) 2003 Tels
# Copyright (C) 2004 David J. Goehrig
-#
+# Copyright (C) 2009 Kartik Thakore
# basic testing of SDL::Mixer
BEGIN {
music_paused
playing
playing_music
+ mix_volume_chunk
/);
# these are exported by default, so main:: should know them: