From 6eb46a3ca7be4934a5232cdb6f84ee6260a60972 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 21 Aug 2024 11:54:58 +1000 Subject: [PATCH] codal_port/microbit_soundeffect: Add comments for CODAL fx constants. It's not possible to include the CODAL header file that defines these constants because that header file is C++. Signed-off-by: Damien George --- src/codal_port/microbit_soundeffect.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/codal_port/microbit_soundeffect.c b/src/codal_port/microbit_soundeffect.c index cd51f8a..f995293 100644 --- a/src/codal_port/microbit_soundeffect.c +++ b/src/codal_port/microbit_soundeffect.c @@ -70,12 +70,12 @@ #define SOUND_EFFECT_FX_WARBLE (3) // These default fx values are the same as used by MakeCode. -#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_PARAM (2) -#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_PARAM (3) -#define SOUND_EFFECT_FX_WARBLE_DEFAULT_PARAM (2) -#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_STEPS (512) -#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_STEPS (900) -#define SOUND_EFFECT_FX_WARBLE_DEFAULT_STEPS (700) +#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_PARAM (2) // SFX_DEFAULT_VIBRATO_PARAM +#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_PARAM (3) // SFX_DEFAULT_TREMOLO_PARAM +#define SOUND_EFFECT_FX_WARBLE_DEFAULT_PARAM (2) // SFX_DEFAULT_WARBLE_PARAM +#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_STEPS (512) // SFX_DEFAULT_VIBRATO_STEPS +#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_STEPS (900) // SFX_DEFAULT_TREMOLO_STEPS +#define SOUND_EFFECT_FX_WARBLE_DEFAULT_STEPS (700) // SFX_DEFAULT_WARBLE_STEPS #define SOUND_EFFECT_DEFAULT_FREQ_START (500) #define SOUND_EFFECT_DEFAULT_FREQ_END (2500)