From ca2919097fc0f9baca3ffda637b17b00a7b28ecc Mon Sep 17 00:00:00 2001 From: "fabio.olimpieri" Date: Tue, 13 May 2014 08:34:57 +0000 Subject: [PATCH] Added volume to currah emulation --- src/spk_ay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spk_ay.c b/src/spk_ay.c index af422c7..500e34b 100644 --- a/src/spk_ay.c +++ b/src/spk_ay.c @@ -368,8 +368,8 @@ inline void play_sound (unsigned int tstados) { { if ((ordenador.currah_active)&&(!ordenador.turbo_state)) { - *ordenador.current_buffer = (rvalue_sum/N_SAMPLES+((unsigned int)allophone_buffer[ordenador.current_allophone][ordenador.allophone_sound_cuantity/INTONATION_INCREASE])*64)<<16 - |(lvalue_sum/N_SAMPLES+((unsigned int)allophone_buffer[ordenador.current_allophone][ordenador.allophone_sound_cuantity/INTONATION_INCREASE])*64); + *ordenador.current_buffer = (rvalue_sum/N_SAMPLES+((unsigned int)allophone_buffer[ordenador.current_allophone][ordenador.allophone_sound_cuantity/INTONATION_INCREASE])*ordenador.volume*4)<<16 + |(lvalue_sum/N_SAMPLES+((unsigned int)allophone_buffer[ordenador.current_allophone][ordenador.allophone_sound_cuantity/INTONATION_INCREASE])*ordenador.volume*4); if(!ordenador.intonation_allophone) ordenador.allophone_sound_cuantity+=INTONATION_INCREASE; else ordenador.allophone_sound_cuantity+=INTONATION_INCREASE+1; //The freq increase should be gradual