Exemplo n.º 1
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.º 2
0
void speaker_device::set_input_gain(int inputnum, float gain)
{
	m_input[inputnum].m_gain = gain;
	stream_set_input_gain(m_mixer_stream, inputnum, gain);
}