sound.h
author darkvater
Tue, 10 Aug 2004 21:41:17 +0000
changeset 17 2a3a095d9aec
parent 0 29654efe3188
child 337 cbe0c766c947
permissions -rw-r--r--
(svn r18) -Feature Safeguard against invalid values in Patches window. Values will stick to their defined min and max values
#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 */