From f774afc5387887f4ce8067502412f5f64899632f Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Thu, 23 Nov 2017 13:51:14 +0900 Subject: libopna: make levelmeter and oscillo conditional --- libopna/opnadrum.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libopna/opnadrum.h') diff --git a/libopna/opnadrum.h b/libopna/opnadrum.h index 7260995..df42927 100644 --- a/libopna/opnadrum.h +++ b/libopna/opnadrum.h @@ -3,7 +3,9 @@ #include #include +#ifdef LIBOPNA_ENABLE_LEVELDATA #include "leveldata/leveldata.h" +#endif #ifdef __cplusplus extern "C" { @@ -33,7 +35,9 @@ struct opna_drum { unsigned level; bool left; bool right; +#ifdef LIBOPNA_ENABLE_LEVELDATA struct leveldata leveldata; +#endif } drums[6]; unsigned total_level; int16_t rom_bd[OPNA_ROM_BD_SIZE]; -- cgit v1.2.3