diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2005-01-06 14:08:00 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2005-01-06 14:08:00 (GMT) |
commit | 4336cfda219af467f14f724634b40cb6a98e9c83 (patch) | |
tree | 196c05a51aa37a785f1ae665dfbc2b8b795fb504 | |
parent | 45e2f38a19cea2d0f5fe6da5c783358a613ed916 (diff) | |
download | TASS-4336cfda219af467f14f724634b40cb6a98e9c83.zip TASS-4336cfda219af467f14f724634b40cb6a98e9c83.tar.gz TASS-4336cfda219af467f14f724634b40cb6a98e9c83.tar.bz2 |
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?
-rw-r--r-- | Graphic_Equalizer/src/audio.hcc | 11 |
1 files 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);
|