sound.h
author signde
Mon, 13 Sep 2004 22:49:11 +0000
changeset 239 23958632a582
parent 0 29654efe3188
child 337 cbe0c766c947
permissions -rw-r--r--
(svn r240) -Fix: desync on subsidy generation
-Fix: sometimes commands got executed to early on some clients
-Feature: universal event packets for transmitting subsidys
#ifndef SOUND_H
#define SOUND_H

typedef struct Mixer Mixer;

typedef struct MusicFileSettings {
	byte playlist;
	byte music_vol;
	byte effect_vol;
	byte custom_1[33];
	byte custom_2[33];
	bool btn_down;
	bool shuffle;
} MusicFileSettings;

VARDEF byte _music_wnd_cursong;
VARDEF bool _song_is_active;
VARDEF byte _cur_playlist[33];
VARDEF MusicFileSettings msf;
VARDEF Mixer *_mixer;

bool MxInitialize(uint rate, const char *filename);
void MxMixSamples(Mixer *mx, void *buffer, uint samples);

#endif /* SOUND_H */