Skip to content

Commit

Permalink
Applied sound distort diff from here http://fb-win32.sourceforge.net/…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Thakore committed Oct 2, 2009
1 parent 34abf1f commit b251d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frozen-bubble
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ sub play_music($) {
}

sub init_sound() {
$mixer = eval { SDL::Mixer->new(-frequency => 44100, -channels => 2, -size => 1024); };
$mixer = eval { SDL::Mixer->new(-frequency => 22050, -channels => 2, -size => 1024); };
if ($@) {
$@ =~ s| at \S+ line.*\n||;
print STDERR "\nWarning: can't initialize sound (reason: $@).\n";
Expand All @@ -311,7 +311,7 @@ sub init_sound() {
my $sound_path = "$FPATH/snd/$_.ogg";
$sound{$_} = SDL::Sound->new($sound_path);
if (UNIVERSAL::isa($sound{$_}, 'HASH') ? $sound{$_}{-data} : ${$sound{$_}}) {
$sound{$_}->volume(80);
$sound{$_}->volume(100);
} else {
print STDERR "Warning, could not create new sound from '$sound_path'.\n";
}
Expand Down

0 comments on commit b251d74

Please sign in to comment.