summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-07-28 15:31:36 +0800
committerrekado <rekado@elephly.net>2013-07-28 15:31:36 +0800
commit248aaef1ab0b3ec2f9ce4b2ee84f27ab39c1e025 (patch)
tree9282b98824b8b66c0a899f725cf881ab122b8dbb /src
parent5589157fb48f52dd15180d63c3057b3267ccc54a (diff)
inline helper functions
Diffstat (limited to 'src')
-rw-r--r--src/mdaPianoCommon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mdaPianoCommon.h b/src/mdaPianoCommon.h
index 061a94e..739a8ea 100644
--- a/src/mdaPianoCommon.h
+++ b/src/mdaPianoCommon.h
@@ -29,12 +29,12 @@ typedef struct
short* buffer; //pointer to sample data
} Sample;
-static float scale_midi_to_f(unsigned char data)
+inline float scale_midi_to_f(unsigned char data)
{
return 0.0078f * (float)(data);
}
-static unsigned char p_offset(unsigned char i)
+inline unsigned char p_offset(unsigned char i)
{
return (i - PARAM_OFFSET);
}