aboutsummaryrefslogtreecommitdiff
path: root/libopna/opnafm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopna/opnafm.c')
-rw-r--r--libopna/opnafm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libopna/opnafm.c b/libopna/opnafm.c
index dc19b6d..7555ef3 100644
--- a/libopna/opnafm.c
+++ b/libopna/opnafm.c
@@ -607,6 +607,7 @@ void opna_fm_writereg(struct opna_fm *fm, unsigned reg, unsigned val) {
}
}
+#ifdef LIBOPNA_ENABLE_OSCILLO
static int gcd(int a, int b) {
if (a < b) {
int t = a;
@@ -621,6 +622,7 @@ static int gcd(int a, int b) {
}
return b;
}
+#endif
void opna_fm_mix(struct opna_fm *fm, int16_t *buf, unsigned samples,
struct oscillodata *oscillo, unsigned offset) {
@@ -646,6 +648,9 @@ void opna_fm_mix(struct opna_fm *fm, int16_t *buf, unsigned samples,
}
}
}
+#else
+ (void)oscillo;
+ (void)offset;
#endif
unsigned level[6] = {0};
for (unsigned i = 0; i < samples; i++) {