mixer.h
author miham
Fri, 08 Dec 2006 17:40:42 +0000
changeset 5285 b4a8aa4e55fe
parent 2977 0240dd4704a7
permissions -rw-r--r--
(svn r7434) WebTranslator2 update to 2006-12-08 18:40:00
american - 1 fixed by WhiteRabbit (1)
bulgarian - 5 fixed, 2 changed by groupsky (7)
esperanto - 314 fixed, 31 changed by LaPingvino (345)
french - 3 fixed, 5 changed by glx (8)
italian - 7 fixed, 3 changed by sidew (10)
portuguese - 3 fixed by izhirahider (3)
slovak - 7 fixed, 8 changed by lengyel (15)
ukrainian - 10 fixed by znikoz (10)
/* $Id$ */

#ifndef MIXER_H
#define MIXER_H

typedef struct MixerChannel MixerChannel;

enum {
	MX_AUTOFREE = 1,
//	MX_8BIT = 2,
//	MX_STEREO = 4,
//	MX_UNSIGNED = 8,
};

bool MxInitialize(uint rate);
void MxMixSamples(void* buffer, uint samples);

MixerChannel* MxAllocateChannel(void);
void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, uint size, uint rate, uint flags);
void MxSetChannelVolume(MixerChannel *mc, uint left, uint right);
void MxActivateChannel(MixerChannel*);

#endif /* MIXER_H */