2005-07-24 14:12:37 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file mixer.h Functions to mix sound samples. */
|
2007-03-03 04:04:22 +00:00
|
|
|
|
2005-03-12 09:38:03 +00:00
|
|
|
#ifndef MIXER_H
|
|
|
|
#define MIXER_H
|
|
|
|
|
2007-03-07 12:11:48 +00:00
|
|
|
struct MixerChannel;
|
2005-03-12 09:38:03 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
MX_AUTOFREE = 1,
|
|
|
|
// MX_8BIT = 2,
|
|
|
|
// MX_STEREO = 4,
|
|
|
|
// MX_UNSIGNED = 8,
|
|
|
|
};
|
|
|
|
|
|
|
|
bool MxInitialize(uint rate);
|
2007-07-24 17:01:23 +00:00
|
|
|
void MxMixSamples(void *buffer, uint samples);
|
2005-03-12 09:38:03 +00:00
|
|
|
|
2007-07-24 17:01:23 +00:00
|
|
|
MixerChannel *MxAllocateChannel();
|
2008-05-27 21:41:00 +00:00
|
|
|
void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, size_t size, uint rate, uint flags);
|
2005-03-12 09:38:03 +00:00
|
|
|
void MxSetChannelVolume(MixerChannel *mc, uint left, uint right);
|
2005-03-12 09:46:07 +00:00
|
|
|
void MxActivateChannel(MixerChannel*);
|
2005-03-12 09:38:03 +00:00
|
|
|
|
2005-09-18 20:56:44 +00:00
|
|
|
#endif /* MIXER_H */
|