Files @ r5183:554598f00547
Branch filter:

Location: cpp/openttd-patchpack/source/mixer.h

miham
(svn r7293) WebTranslator2 update to 2006-11-30 08:56:49
brazilian_portuguese - 4 fixed by tucalipe (4)
catalan - 4 fixed, 31 changed by arnaullv (35)
croatian - 13 fixed by blozo (13)
french - 4 fixed by glx (4)
german - 1 fixed by Neonox (1)
hungarian - 7 fixed by miham (7)
/* $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 */