ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/bin/pclient
(Generate patch)

Comparing deliantra/Deliantra-Client/bin/pclient (file contents):
Revision 1.134 by root, Tue Apr 18 05:13:15 2006 UTC vs.
Revision 1.135 by root, Tue Apr 18 06:26:55 2006 UTC

9use SDL; 9use SDL;
10use SDL::App; 10use SDL::App;
11use SDL::Event; 11use SDL::Event;
12use SDL::Surface; 12use SDL::Surface;
13 13
14use SDL::Mixer;
14use SDL::Sound; 15use SDL::Sound;
15use SDL::Mixer; 16use SDL::Music;
16 17
17use SDL::OpenGL; 18use SDL::OpenGL;
18 19
19use Crossfire; 20use Crossfire;
20use Crossfire::Protocol; 21use Crossfire::Protocol;
465 $CFClient::UI::ROOT->{children} = []; 466 $CFClient::UI::ROOT->{children} = [];
466 undef $SDL_ACTIVE; 467 undef $SDL_ACTIVE;
467 undef $SDL_EV; 468 undef $SDL_EV;
468} 469}
469 470
471my $bgmusic;#TODO#hack#d#
472
470sub audio_init { 473sub audio_init {
471 if ($CFG->{sound} || 1) { 474 if ($CFG->{sound} || 1) {
472 if (open my $fh, "<:utf8", CFClient::find_rcfile "sounds/config") { 475 if (open my $fh, "<:utf8", CFClient::find_rcfile "sounds/config") {
473 $SDL_MIXER = new SDL::Mixer; 476 $SDL_MIXER = new SDL::Mixer;
474 $SDL_MIXER->allocate_channels (8); 477 $SDL_MIXER->allocate_channels (8);
478
479 $bgmusic = new SDL::Music CFClient::find_rcfile "music/game3.ogg";
480 $SDL_MIXER->play_music ($bgmusic, 0);
475 481
476 while (<$fh>) { 482 while (<$fh>) {
477 next if /^\s*#/; 483 next if /^\s*#/;
478 next if /^\s*$/; 484 next if /^\s*$/;
479 485

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines