tron@2186: /* $Id$ */ tron@2186: tron@1496: #ifndef MIXER_H tron@1496: #define MIXER_H truelight@0: tron@1496: typedef struct MixerChannel MixerChannel; truelight@0: tron@1496: enum { tron@1496: MX_AUTOFREE = 1, tron@1496: // MX_8BIT = 2, tron@1496: // MX_STEREO = 4, tron@1496: // MX_UNSIGNED = 8, tron@1496: }; truelight@0: tron@1496: bool MxInitialize(uint rate); tron@2977: void MxMixSamples(void* buffer, uint samples); truelight@0: tron@2977: MixerChannel* MxAllocateChannel(void); tron@1496: void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, uint size, uint rate, uint flags); tron@1496: void MxSetChannelVolume(MixerChannel *mc, uint left, uint right); tron@1498: void MxActivateChannel(MixerChannel*); tron@337: Darkvater@2436: #endif /* MIXER_H */