equal
deleted
inserted
replaced
|
1 /* $Id$ */ |
|
2 |
|
3 #ifndef MIXER_H |
|
4 #define MIXER_H |
|
5 |
|
6 typedef struct MixerChannel MixerChannel; |
|
7 |
|
8 enum { |
|
9 MX_AUTOFREE = 1, |
|
10 // MX_8BIT = 2, |
|
11 // MX_STEREO = 4, |
|
12 // MX_UNSIGNED = 8, |
|
13 }; |
|
14 |
|
15 bool MxInitialize(uint rate); |
|
16 void MxMixSamples(void* buffer, uint samples); |
|
17 |
|
18 MixerChannel* MxAllocateChannel(void); |
|
19 void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, uint size, uint rate, uint flags); |
|
20 void MxSetChannelVolume(MixerChannel *mc, uint left, uint right); |
|
21 void MxActivateChannel(MixerChannel*); |
|
22 |
|
23 #endif /* MIXER_H */ |