comparison src/mixer.h @ 5475:eabf4b86aed6 draft

(svn r7759) -Merge: makefile rewrite. This merge features: - A proper ./configure, so everything needs to be configured only once, not for every make. - Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies. - A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC. - Proper support for OSX universal binaries. - Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files. - Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files. Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
author rubidium <rubidium@openttd.org>
date Tue, 02 Jan 2007 19:19:48 +0000
parents
children 3b141366478a
comparison
equal deleted inserted replaced
5474:ba7562ec5adc 5475:eabf4b86aed6
1 /* $Id$ */
2
3 #ifndef MIXER_H
4 #define MIXER_H
5
6 typedef struct MixerChannel MixerChannel;
7
8 enum {
9 MX_AUTOFREE = 1,
10 // MX_8BIT = 2,
11 // MX_STEREO = 4,
12 // MX_UNSIGNED = 8,
13 };
14
15 bool MxInitialize(uint rate);
16 void MxMixSamples(void* buffer, uint samples);
17
18 MixerChannel* MxAllocateChannel(void);
19 void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, uint size, uint rate, uint flags);
20 void MxSetChannelVolume(MixerChannel *mc, uint left, uint right);
21 void MxActivateChannel(MixerChannel*);
22
23 #endif /* MIXER_H */