214 |
current_music_name = ""; |
current_music_name = ""; |
215 |
} |
} |
216 |
|
|
217 |
|
void |
218 |
|
sound::StopMusic(const char *name) |
219 |
|
{ |
220 |
|
if (name==current_music_name) |
221 |
|
StopMusic(); |
222 |
|
} |
223 |
|
|
224 |
/* SDL_ConvertAudio is not very good at audio resampling since it is |
/* SDL_ConvertAudio is not very good at audio resampling since it is |
225 |
only capable of changing the sound frequency by integer powers of 2 |
only capable of changing the sound frequency by integer powers of 2 |
226 |
(i.e., by a factor of ... 1/4 1/2 1 2 ...). The sound files used |
(i.e., by a factor of ... 1/4 1/2 1 2 ...). The sound files used |