aboutsummaryrefslogtreecommitdiff
path: root/libopna/opnassg.h
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-11-23 13:51:14 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-11-23 13:51:14 +0900
commitf774afc5387887f4ce8067502412f5f64899632f (patch)
tree71d588865295f3da64d0ba31ae044d7fc48f64f2 /libopna/opnassg.h
parentdfe585145747ee3d41297367f97d320230df26b3 (diff)
libopna: make levelmeter and oscillo conditional
Diffstat (limited to 'libopna/opnassg.h')
-rw-r--r--libopna/opnassg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libopna/opnassg.h b/libopna/opnassg.h
index 6b1d0cd..a0a50be 100644
--- a/libopna/opnassg.h
+++ b/libopna/opnassg.h
@@ -4,7 +4,9 @@
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
+#ifdef LIBOPNA_ENABLE_LEVELDATA
#include "leveldata/leveldata.h"
+#endif
#ifdef __cplusplus
extern "C" {
@@ -39,7 +41,9 @@ struct opna_ssg {
struct opna_ssg_resampler {
int16_t buf[OPNA_SSG_SINCTABLELEN*4 * 2];
unsigned index;
+#ifdef LIBOPNA_ENABLE_LEVELDATA
struct leveldata leveldata[3];
+#endif
};
void opna_ssg_reset(struct opna_ssg *ssg);