Files
@ r5312:ffd375effb01
Branch filter:
Location: cpp/openttd-patchpack/source/mixer.h - annotation
r5312:ffd375effb01
503 B
text/x-c
(svn r7468) -Codechange: [win32] Add some comments to MB/WIDE_TO_WIDE/MB_[BUFFER] macros and
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
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 */
|