aboutsummaryrefslogtreecommitdiff
path: root/libopna/opnaadpcm.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/opnaadpcm.h
parentdfe585145747ee3d41297367f97d320230df26b3 (diff)
libopna: make levelmeter and oscillo conditional
Diffstat (limited to 'libopna/opnaadpcm.h')
-rw-r--r--libopna/opnaadpcm.h5
1 files changed, 4 insertions, 1 deletions
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 <stdint.h>
#include <stdbool.h>
+#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);