Mercurial > hg > openttd
view src/mixer.h @ 6316:8ecb7b1dea16 draft
(svn r9259) -Codechange: NUM_CARGO isn't a valid cargo type...
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Fri, 16 Mar 2007 21:42:11 +0000 |
parents | 0789677a15a0 |
children | 5305f52bed67 |
line wrap: on
line source
/* $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 */