Files
@ r2280:70feb404746f
Branch filter:
Location: cpp/openttd-patchpack/source/mixer.h - annotation
r2280:70feb404746f
556 B
text/x-c
(svn r2804) [Translators] Updated translations to 20050804 (21 lang(s))
r2186:5ee653b1b5e1 r2186:5ee653b1b5e1 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1498:367403f05f1e r1496:eab93f4e2718 r1496:eab93f4e2718 | /* $Id$ */
#ifndef MIXER_H
#define MIXER_H
typedef struct Mixer Mixer;
typedef struct MixerChannel MixerChannel;
enum {
MX_AUTOFREE = 1,
// MX_8BIT = 2,
// MX_STEREO = 4,
// MX_UNSIGNED = 8,
};
VARDEF Mixer *_mixer;
bool MxInitialize(uint rate);
void MxMixSamples(Mixer *mx, void *buffer, uint samples);
MixerChannel *MxAllocateChannel(Mixer *mx);
void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, uint size, uint rate, uint flags);
void MxSetChannelVolume(MixerChannel *mc, uint left, uint right);
void MxActivateChannel(MixerChannel*);
#endif
|