music.c
changeset 83 c95d43cc6d38
parent 71 8e73543b4c84
child 98 f00eb57224a5
     1.1 --- a/music.c	Thu Apr 05 21:18:09 2001 +0000
     1.2 +++ b/music.c	Thu Apr 05 21:25:56 2001 +0000
     1.3 @@ -61,7 +61,7 @@
     1.4  #include "music_ogg.h"
     1.5  #endif
     1.6  #ifdef MP3_MUSIC
     1.7 -#include <smpeg/smpeg.h>
     1.8 +#include "smpeg.h"
     1.9  
    1.10  static SDL_AudioSpec used_mixer;
    1.11  #endif
    1.12 @@ -546,7 +546,7 @@
    1.13  		case MUS_MP3:
    1.14  			SMPEG_enableaudio(music->data.mp3,1);
    1.15  			SMPEG_enablevideo(music->data.mp3,0);
    1.16 -			SMPEG_setvolume(music->data.mp3,((float)music_volume/(float)MIX_MAX_VOLUME)*100.0);
    1.17 +			SMPEG_setvolume(music->data.mp3,(int)(((float)music_volume/(float)MIX_MAX_VOLUME)*100.0));
    1.18  			SMPEG_play(music->data.mp3);
    1.19  			break;
    1.20  #endif
    1.21 @@ -639,7 +639,7 @@
    1.22  #endif
    1.23  #ifdef MP3_MUSIC
    1.24  		case MUS_MP3:
    1.25 -			SMPEG_setvolume(music_playing->data.mp3,((float)music_volume/(float)MIX_MAX_VOLUME)*100.0);
    1.26 +			SMPEG_setvolume(music_playing->data.mp3,(int)(((float)music_volume/(float)MIX_MAX_VOLUME)*100.0));
    1.27  			break;
    1.28  #endif
    1.29  		default: