| author | tron |
| Mon, 30 Jan 2006 16:58:05 +0000 | |
| changeset 2933 | d7a6b3853609 |
| parent 2436 | 177cb6a8339f |
| child 2977 | 0240dd4704a7 |
| permissions | -rw-r--r-- |
| 2186 | 1 |
/* $Id$ */ |
2 |
||
|
1496
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
3 |
#ifndef MIXER_H |
|
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
4 |
#define MIXER_H |
| 0 | 5 |
|
6 |
typedef struct Mixer Mixer; |
|
|
1496
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
7 |
typedef struct MixerChannel MixerChannel; |
| 0 | 8 |
|
|
1496
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
9 |
enum {
|
|
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
10 |
MX_AUTOFREE = 1, |
|
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
11 |
// MX_8BIT = 2, |
|
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
12 |
// MX_STEREO = 4, |
|
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
13 |
// MX_UNSIGNED = 8, |
|
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
14 |
}; |
| 0 | 15 |
|
16 |
VARDEF Mixer *_mixer; |
|
17 |
||
|
1496
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
18 |
bool MxInitialize(uint rate); |
| 0 | 19 |
void MxMixSamples(Mixer *mx, void *buffer, uint samples); |
20 |
||
|
1496
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
21 |
MixerChannel *MxAllocateChannel(Mixer *mx); |
|
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
22 |
void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, uint size, uint rate, uint flags); |
|
3d0b86f5dcb8
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
tron
parents:
337
diff
changeset
|
23 |
void MxSetChannelVolume(MixerChannel *mc, uint left, uint right); |
|
1498
cbe7edba0316
(svn r2002) Rename MxActivate to MxActivateChannel, which is more appropriate
tron
parents:
1496
diff
changeset
|
24 |
void MxActivateChannel(MixerChannel*); |
|
337
66647f97e7c0
(svn r513) Merge revisions 402, 416, 417, 478, 479, 511, 512 from map to trunk
tron
parents:
0
diff
changeset
|
25 |
|
|
2436
177cb6a8339f
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents:
2186
diff
changeset
|
26 |
#endif /* MIXER_H */ |