mixer.h
author miham
Wed, 27 Dec 2006 13:24:36 +0000
changeset 5386 c16ec5d9c6ea
parent 2977 97c1c76b499a
permissions -rw-r--r--
(svn r7574) WebTranslator2 update to 2006-12-27 14:23:53
bulgarian - 7 fixed, 55 changed by kokobongo (62)
catalan - 2 changed by arnaullv (2)
estonian - 26 fixed by kristjans (26)
lithuanian - 10 fixed by Plyta (10)
norwegian - 53 fixed by oletk (53)
slovak - 2 fixed by lengyel (2)
turkish - 3 fixed by jnmbk (3)
ukrainian - 28 fixed by znikoz (28)
/* $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 */