Mercurial > hg > openttd
view src/mixer.h @ 8108:4faab45e2603 draft
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 19 Dec 2007 23:26:02 +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 */