From 534f7d138dd05ce938447ec8fe625899f3a4c857 Mon Sep 17 00:00:00 2001
From: Takamichi Horikawa <takamichiho@gmail.com>
Date: Sat, 6 Jan 2018 22:57:53 +0900
Subject: libopna: opnafm: renamed and exported opna_fm_slot_env

---
 libopna/opnafm.c | 2 +-
 libopna/opnafm.h | 2 +-
 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 {
-- 
cgit v1.2.3