diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-08-13 23:08:54 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-08-13 23:08:54 +0900 |
commit | 5a8af1f670709d6cd28ad5edda223d9ecbc03bc3 (patch) | |
tree | d8819443b937c49b5a4feb12ad54178d6f79a584 /fmdsp/fmdsp.h | |
parent | 11a5698d68461b91a681f37d66fad5e206969674 (diff) |
added levelmeter
Diffstat (limited to 'fmdsp/fmdsp.h')
-rw-r--r-- | fmdsp/fmdsp.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/fmdsp/fmdsp.h b/fmdsp/fmdsp.h index 6a98707..e458d39 100644 --- a/fmdsp/fmdsp.h +++ b/fmdsp/fmdsp.h @@ -19,7 +19,8 @@ enum { }; enum { - FMDSP_PALETTE_COLORS = 10 + FMDSP_PALETTE_COLORS = 10, + FMDSP_LEVEL_COUNT = 19, }; enum FMDSP_DISPSTYLE { @@ -38,12 +39,16 @@ struct fmdsp { enum FMDSP_DISPSTYLE style; bool style_updated; bool masked[FMDRIVER_TRACK_NUM]; + bool masked_rhythm; uint8_t fftdata[FFTDISPLEN]; uint8_t fftcnt[FFTDISPLEN]; uint8_t fftdropdiv[FFTDISPLEN]; uint64_t framecnt; int cpuusage; int fps; + uint8_t leveldata[FMDSP_LEVEL_COUNT]; + uint8_t levelcnt[FMDSP_LEVEL_COUNT]; + uint8_t leveldropdiv[FMDSP_LEVEL_COUNT]; }; struct fmdriver_work; @@ -51,8 +56,8 @@ void fmdsp_init(struct fmdsp *fmdsp, const struct fmdsp_font *font); void fmdsp_vram_init(struct fmdsp *fmdsp, struct fmdriver_work *work, uint8_t *vram); -void fmdsp_update(struct fmdsp *fmdsp, const struct fmdriver_work *work, - const struct opna *opna, uint8_t *vram, +void fmdsp_update(struct fmdsp *fmdsp, struct fmdriver_work *work, + struct opna *opna, uint8_t *vram, struct fmplayer_fft_input_data *idata ); void fmdsp_vrampalette(struct fmdsp *fmdsp, const uint8_t *vram, uint8_t *vram32, int stride); |