Files @ r12495:cee0dce48aaf
Branch filter:

Location: cpp/openttd-patchpack/source/src/mixer.h

rubidium
(svn r16942) -Codechange: document CanExpandRailStation and remove the 'magic' array of numbers for a named struct
/* $Id$ */

/** @file mixer.h Functions to mix sound samples. */

#ifndef MIXER_H
#define MIXER_H

struct MixerChannel;

bool MxInitialize(uint rate);
void MxMixSamples(void *buffer, uint samples);

MixerChannel *MxAllocateChannel();
void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, size_t size, uint rate);
void MxSetChannelVolume(MixerChannel *mc, uint left, uint right);
void MxActivateChannel(MixerChannel*);

#endif /* MIXER_H */