20 |
#ifndef SOUND_HH |
#ifndef SOUND_HH |
21 |
#define SOUND_HH |
#define SOUND_HH |
22 |
|
|
23 |
|
#include "SDL_mixer.h" |
24 |
#include "px/math.hh" |
#include "px/math.hh" |
25 |
|
|
26 |
namespace sound |
namespace sound |
40 |
void FadeoutMusic(); |
void FadeoutMusic(); |
41 |
void StopMusic(); |
void StopMusic(); |
42 |
|
|
43 |
|
/* This function converts raw audio data with a specified format |
44 |
|
to the mixer's audio format. This is used for converting the |
45 |
|
original Oxyd sounds to a format usable by Enigma. */ |
46 |
|
Mix_Chunk *ChunkFromRaw (const Uint8 *buf, Uint32 len, |
47 |
|
int freq, int format, int channels); |
48 |
|
|
49 |
|
|
50 |
/* Set the sound and music volume according to the settings in |
/* Set the sound and music volume according to the settings in |
51 |
namespace options:: */ |
namespace options:: */ |
52 |
void UpdateVolume(); |
void UpdateVolume(); |