Files @ r10673:d53513e30781
Branch filter:

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

translators
(svn r14977) -Update: WebTranslator2 update to 2009-01-10 18:44:17
arabic_egypt - 4 fixed by khaloofah (4)
brazilian_portuguese - 26 fixed by tucalipe (26)
bulgarian - 3 fixed by Ar4i (3)
catalan - 3 fixed by arnaullv (3)
croatian - 35 fixed by tifached (35)
czech - 52 fixed, 10 changed by Hadez (62)
danish - 4 fixed by ThomasA (4)
dutch - 6 fixed by Excel20 (4), habell (2)
finnish - 15 fixed by UltimateSephiroth (15)
french - 15 fixed by glx (15)
hungarian - 6 fixed by alyr (6)
indonesian - 6 fixed, 64 changed by fanioz (70)
italian - 3 fixed, 1 changed by lorenzodv (4)
portuguese - 6 fixed by rmrebelo (6)
romanian - 6 fixed by kkmic (6)
/* $Id$ */

/** @file mixer.h Functions to mix sound samples. */

#ifndef MIXER_H
#define MIXER_H

struct 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 MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, size_t size, uint rate, uint flags);
void MxSetChannelVolume(MixerChannel *mc, uint left, uint right);
void MxActivateChannel(MixerChannel*);

#endif /* MIXER_H */