aboutsummaryrefslogtreecommitdiff
path: root/libopna
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2018-01-06 22:57:53 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2018-01-06 22:57:53 +0900
commit534f7d138dd05ce938447ec8fe625899f3a4c857 (patch)
tree7ed8b3b9994df2374527f63678afad0e5621bf42 /libopna
parentdebf5ff36789e6b4d269b2ead9a91d77852bd9df (diff)
libopna: opnafm: renamed and exported opna_fm_slot_env
Diffstat (limited to 'libopna')
-rw-r--r--libopna/opnafm.c2
-rw-r--r--libopna/opnafm.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libopna/opnafm.c b/libopna/opnafm.c
index b96d727..dc19b6d 100644
--- a/libopna/opnafm.c
+++ b/libopna/opnafm.c
@@ -298,7 +298,7 @@ static void opna_fm_slot_setrate(struct opna_fm_slot *slot, int status) {
printf("rate_shifter: %d\n\n", slot->rate_shifter);
}
-static void opna_fm_slot_env(struct opna_fm_slot *slot, bool hires_env) {
+void opna_fm_slot_env(struct opna_fm_slot *slot, bool hires_env) {
// if (!(slot->env_count & ((1<<slot->rate_shifter)-1))) {
int rate_shifter = hires_env ? slot->rate_shifter_hires : slot->rate_shifter;
int rate_selector = hires_env ? slot->rate_selector_hires : slot->rate_selector;
diff --git a/libopna/opnafm.h b/libopna/opnafm.h
index 51bf214..8813c13 100644
--- a/libopna/opnafm.h
+++ b/libopna/opnafm.h
@@ -112,7 +112,7 @@ void opna_fm_writereg(struct opna_fm *fm, unsigned reg, unsigned val);
//
void opna_fm_chan_reset(struct opna_fm_channel *chan);
void opna_fm_chan_phase(struct opna_fm_channel *chan);
-void opna_fm_chan_env(struct opna_fm_channel *chan);
+void opna_fm_slot_env(struct opna_fm_slot *slot, bool hires_env);
void opna_fm_chan_set_blkfnum(struct opna_fm_channel *chan, unsigned blk, unsigned fnum);
struct opna_fm_frame {