Exemplo n.º 1
0
void sound_set_user_gain(running_machine *machine, int index, float gain)
{
	int inputnum;
	speaker_device *speaker = index_to_input(machine, index, inputnum);

	if (speaker != NULL)
		speaker->set_input_gain(inputnum, gain);
}
Exemplo n.º 2
0
void sound_set_user_gain(int index, float gain)
{
	int inputnum;
	speaker_info *spk = index_to_input(index, &inputnum);

	if (spk != NULL)
	{
		spk->input[inputnum].gain = gain;
		stream_set_input_gain(spk->mixer_stream, inputnum, gain);
	}
}
Exemplo n.º 3
0
const char *sound_get_user_gain_name(int index)
{
	int inputnum;
	speaker_info *spk = index_to_input(index, &inputnum);
	return (spk != NULL) ? spk->input[inputnum].name : NULL;
}
Exemplo n.º 4
0
float sound_get_default_gain(int index)
{
	int inputnum;
	speaker_info *spk = index_to_input(index, &inputnum);
	return (spk != NULL) ? spk->input[inputnum].default_gain : 0;
}
Exemplo n.º 5
0
const char *sound_get_user_gain_name(running_machine *machine, int index)
{
	int inputnum;
	speaker_device *speaker = index_to_input(machine, index, inputnum);
	return (speaker != NULL) ? speaker->input_name(inputnum) : 0;
}
Exemplo n.º 6
0
float sound_get_default_gain(running_machine *machine, int index)
{
	int inputnum;
	speaker_device *speaker = index_to_input(machine, index, inputnum);
	return (speaker != NULL) ? speaker->input_default_gain(inputnum) : 0;
}