Skip to content

Commit 6eb46a3

Browse files
committed
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 <[email protected]>
1 parent 9486813 commit 6eb46a3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/codal_port/microbit_soundeffect.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@
7070
#define SOUND_EFFECT_FX_WARBLE (3)
7171

7272
// These default fx values are the same as used by MakeCode.
73-
#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_PARAM (2)
74-
#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_PARAM (3)
75-
#define SOUND_EFFECT_FX_WARBLE_DEFAULT_PARAM (2)
76-
#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_STEPS (512)
77-
#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_STEPS (900)
78-
#define SOUND_EFFECT_FX_WARBLE_DEFAULT_STEPS (700)
73+
#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_PARAM (2) // SFX_DEFAULT_VIBRATO_PARAM
74+
#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_PARAM (3) // SFX_DEFAULT_TREMOLO_PARAM
75+
#define SOUND_EFFECT_FX_WARBLE_DEFAULT_PARAM (2) // SFX_DEFAULT_WARBLE_PARAM
76+
#define SOUND_EFFECT_FX_VIBRATO_DEFAULT_STEPS (512) // SFX_DEFAULT_VIBRATO_STEPS
77+
#define SOUND_EFFECT_FX_TREMOLO_DEFAULT_STEPS (900) // SFX_DEFAULT_TREMOLO_STEPS
78+
#define SOUND_EFFECT_FX_WARBLE_DEFAULT_STEPS (700) // SFX_DEFAULT_WARBLE_STEPS
7979

8080
#define SOUND_EFFECT_DEFAULT_FREQ_START (500)
8181
#define SOUND_EFFECT_DEFAULT_FREQ_END (2500)

0 commit comments

Comments
 (0)