Files @ r8141:42cd6a34e115
Branch filter:

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

miham
(svn r11703) -Update: WebTranslator2 update to 2007-12-26 17:33:24
estonian - 16 changed by kristjans (16)
polish - 94 fixed, 6 changed by meush (100)
russian - 22 fixed by Smoky555 (22)
spanish - 11 fixed by eusebio (11)
traditional_chinese - 25 fixed, 4 changed by xbddc (29)
/* $Id$ */

/** @file mixer.h */

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

#endif /* MIXER_H */