shithub: choc

Download patch

ref: e3954613bd4365cac43dd6f7b89ef73e82c56936
parent: a0ef4eda48581ee66ebf223bee139f1f135c3d6b
author: Simon Howard <fraggle@soulsphere.org>
date: Sun Feb 28 08:25:19 EST 2016

opl: Fix compile errors.

I think these were introduced when functions in the file were made
static, eg.
"static declaration of 'OPL3_EnvelopeGenOff' follows non-static declaration"
Make function prototypes static where appropriate.

--- a/opl/opl3.c
+++ b/opl/opl3.c
@@ -388,11 +388,11 @@
     OPL3_EnvelopeCalcSin7
 };
 
-void OPL3_EnvelopeGenOff(opl3_slot *slot);
-void OPL3_EnvelopeGenAttack(opl3_slot *slot);
-void OPL3_EnvelopeGenDecay(opl3_slot *slot);
-void OPL3_EnvelopeGenSustain(opl3_slot *slot);
-void OPL3_EnvelopeGenRelease(opl3_slot *slot);
+static void OPL3_EnvelopeGenOff(opl3_slot *slot);
+static void OPL3_EnvelopeGenAttack(opl3_slot *slot);
+static void OPL3_EnvelopeGenDecay(opl3_slot *slot);
+static void OPL3_EnvelopeGenSustain(opl3_slot *slot);
+static void OPL3_EnvelopeGenRelease(opl3_slot *slot);
 
 envelope_genfunc envelope_gen[5] = {
     OPL3_EnvelopeGenOff,
@@ -703,7 +703,7 @@
 // Channel
 //
 
-void OPL3_ChannelSetupAlg(opl3_channel *channel);
+static void OPL3_ChannelSetupAlg(opl3_channel *channel);
 
 static void OPL3_ChannelUpdateRhythm(opl3_chip *chip, Bit8u data)
 {