/***************************************************************
                           sound.h
 ***************************************************************/

module allegro.sound;

public import allegro.digi;
public import allegro.stream;
public import allegro.midi;

extern (C) {

void reserve_voices (int digi_voices, int midi_voices);
void set_volume_per_voice (int scale);

int install_sound (int digi, int midi, in char *cfg_path);
void remove_sound ();

int install_sound_input (int digi, int midi);
void remove_sound_input ();

void set_volume (int digi_volume, int midi_volume);
void set_hardware_volume (int digi_volume, int midi_volume);

void get_volume (int *digi_volume, int *midi_volume);
void get_hardware_volume (int *digi_volume, int *midi_volume);

void set_mixer_quality (int quality);
int get_mixer_quality ();
int get_mixer_frequency ();
int get_mixer_bits ();
int get_mixer_channels ();
int get_mixer_voices ();
int get_mixer_buffer_length ();

}  // extern (C)
