Mercurial > hg > openttd
view mixer.h @ 2444:c1145552a533 draft
(svn r2970) - Newgrf: Allocate spritegroups dynamically; this allows a cargo ID to reference the previous definition of the same cargo ID, instead of causing loops.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Thu, 22 Sep 2005 20:35:20 +0000 |
parents | 027bdc04f0ed |
children | cd0eb73f2d32 |
line wrap: on
line source
/* $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 /* MIXER_H */