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/opnaadpcm.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libopna/opnaadpcm.h') diff --git a/libopna/opnaadpcm.h b/libopna/opnaadpcm.h index 27a0be3..ce06b37 100644 --- a/libopna/opnaadpcm.h +++ b/libopna/opnaadpcm.h @@ -3,7 +3,9 @@ #include #include +#ifdef LIBOPNA_ENABLE_LEVELDATA #include "leveldata/leveldata.h" +#endif #ifdef __cplusplus extern "C" { @@ -25,8 +27,9 @@ struct opna_adpcm { uint16_t adpcmd; int16_t out; bool masked; - atomic_uint levelvu; +#ifdef LIBOPNA_ENABLE_LEVELDATA struct leveldata leveldata; +#endif }; void opna_adpcm_reset(struct opna_adpcm *adpcm); -- cgit v1.2.3