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
|
|
|
|
|
|
|
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();
|
2009-07-13 10:17:22 +00:00
|
|
|
void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, size_t size, uint rate);
|
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 */
|