From 4336cfda219af467f14f724634b40cb6a98e9c83 Mon Sep 17 00:00:00 2001 From: Oliver Schinagl Date: Thu, 6 Jan 2005 14:08:00 +0000 Subject: We need to initialize the gain level and the position so it looks pretty. Hence we init the gain where we also 'change' it later. So we removed the parameter here. A better design choice would have been to add two functions here to set volume and gain. TOD0? --- Graphic_Equalizer/src/audio.hcc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Graphic_Equalizer/src/audio.hcc b/Graphic_Equalizer/src/audio.hcc index 91901e1..2cf0edc 100644 --- a/Graphic_Equalizer/src/audio.hcc +++ b/Graphic_Equalizer/src/audio.hcc @@ -42,14 +42,13 @@ * \retval void * */ -macro proc audio_init(gain_level, input_source, sample_rate, AUDIOIN, AUDIOOUT) { +macro proc audio_init(input_source, sample_rate, AUDIOIN, AUDIOOUT) { /* - * We simply call the appropiate handlers and pass values along. We - * Don't set the mute on input gain. We have volume control to do this. - * Input and Output sampling rates are equal. We dont' need different - * rates. + * We simply call the appropiate handlers and pass values along. + * We have volume control to do this. Input and Output sampling rates + * are equal. We dont' need different rates. */ - RC200AudioInSetGain(FALSE, gain_level, gain_level); + RC200AudioInSetInput(input_source); PalAudioInSetSampleRate(AUDIOIN, sample_rate); PalAudioOutSetSampleRate(AUDIOOUT, sample_rate); -- cgit v0.12