Files @ r4852:62767c8816ab
Branch filter:

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

miham
(svn r6778) WebTranslator2 update to 2006-10-15 15:27:37
brazilian_portuguese - 1 changed by tucalipe (1)
catalan - 15 changed by arnaullv (15)
estonian - 6 fixed by vermon (6)
german - 4 fixed by Neonox (4)
polish - 5 fixed, 2 changed by meush (7)
portuguese - 7 fixed by izhirahider (7)
spanish - 5 fixed by eusebio (5)
/* $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 */