summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorgrant <grant>2004-06-12 01:37:39 +0000
committergrant <grant>2004-06-12 01:37:39 +0000
commit3f0bc5ddd5baeda1bc66507ecee138d07a5b221c (patch)
tree0734627fea9397fa4b395b08366064386a7c5e61 /audio
parent0d6fc9cb64c5249877dd6141741a9a40e87036d1 (diff)
downloadpkgsrc-3f0bc5ddd5baeda1bc66507ecee138d07a5b221c.tar.gz
inline linear2mulaw() and mulaw2linear().
with SunPro, inline functions can't call static functions unless they are also inline. fixes build on Solaris.
Diffstat (limited to 'audio')
-rw-r--r--audio/madplay/distinfo3
-rw-r--r--audio/madplay/patches/patch-ab22
2 files changed, 24 insertions, 1 deletions
diff --git a/audio/madplay/distinfo b/audio/madplay/distinfo
index 95894ac281b..6054d58a663 100644
--- a/audio/madplay/distinfo
+++ b/audio/madplay/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2004/03/01 15:56:58 adam Exp $
+$NetBSD: distinfo,v 1.6 2004/06/12 01:37:39 grant Exp $
SHA1 (madplay-0.15.2b.tar.gz) = 29105eb27c1416aa33c8d1ab3404a8e5f0aecd3f
Size (madplay-0.15.2b.tar.gz) = 590929 bytes
SHA1 (patch-aa) = 0dd6ee05f9b0d58a88fe9b61f52bf847227c51a6
+SHA1 (patch-ab) = 7af616781aa695e6be2c4a4cae23dafc5d056c4f
diff --git a/audio/madplay/patches/patch-ab b/audio/madplay/patches/patch-ab
new file mode 100644
index 00000000000..d61907d449f
--- /dev/null
+++ b/audio/madplay/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.6 2004/06/12 01:37:39 grant Exp $
+
+--- audio.c.orig 2004-01-23 20:41:31.000000000 +1100
++++ audio.c
+@@ -959,7 +959,7 @@ unsigned int audio_pcm_s32be(unsigned ch
+ }
+ }
+
+-static
++static inline
+ unsigned char linear2mulaw(mad_fixed_t sample)
+ {
+ unsigned int sign, mulaw;
+@@ -1000,7 +1000,7 @@ unsigned char linear2mulaw(mad_fixed_t s
+ return mulaw;
+ }
+
+-static
++static inline
+ mad_fixed_t mulaw2linear(unsigned char mulaw)
+ {
+ int sign, segment, mantissa, value;