Files
@ r4381:c965d1f3016a
Branch filter:
Location: cpp/openttd-patchpack/source/mixer.h - annotation
r4381:c965d1f3016a
503 B
text/x-c
(svn r6131) -Codechange : Complete all missing _ttdpatch_flags entries
-Feature : both unifiedmaglevmode are now set.
Maglev and monorail are not allowed to run on each other tracks and will not be.
Setting those flags will allow grfsets as the Norvegian one to be loaded
-Codechange : link the TTDPatch's irregularstations with OTTD's nonuniform_stations
-Codechange : Reformat the whole array (thanks Rubidium, it sure looks better now)
-Feature : both unifiedmaglevmode are now set.
Maglev and monorail are not allowed to run on each other tracks and will not be.
Setting those flags will allow grfsets as the Norvegian one to be loaded
-Codechange : link the TTDPatch's irregularstations with OTTD's nonuniform_stations
-Codechange : Reformat the whole array (thanks Rubidium, it sure looks better now)
r2186:5ee653b1b5e1 r2186:5ee653b1b5e1 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r1496:eab93f4e2718 r2977:6a8a4298e856 r2977:6a8a4298e856 r1496:eab93f4e2718 r2977:6a8a4298e856 r1496:eab93f4e2718 r1496:eab93f4e2718 r1498:367403f05f1e r1496:eab93f4e2718 r2436:963efe8b84cc | /* $Id$ */
#ifndef MIXER_H
#define MIXER_H
typedef struct MixerChannel 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);
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 */
|