Mercurial > hg > openttd
view src/mixer.h @ 7739:3387a53e113f draft
(svn r11276) -Codechange: be more consistent with naming of some accessors.
-Fix: make sure canals are never owned by water. Based on a patch by boekabart.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 16 Oct 2007 19:48:58 +0000 |
parents | 5305f52bed67 |
children | d48433370037 |
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 */