diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-01-28 03:50:57 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-01-28 03:50:57 +0000 |
commit | e22dc21f0841391af451eb11ce2970281fc615af (patch) | |
tree | d76f39bc291dceeec28994c20f7404726a91aa31 /audio/s3mod/files/patch-ai | |
parent | update to 1.21 (diff) |
- Support MAKE properly
- Support install macros
- Apply to 'one file per patch' convention
- Add WWW: line
PR: 24667
Submitted by: tkato@prontomail.ne.jp
Diffstat (limited to 'audio/s3mod/files/patch-ai')
-rw-r--r-- | audio/s3mod/files/patch-ai | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/audio/s3mod/files/patch-ai b/audio/s3mod/files/patch-ai new file mode 100644 index 000000000000..f31016c94442 --- /dev/null +++ b/audio/s3mod/files/patch-ai @@ -0,0 +1,24 @@ +--- mod.c.orig Sun Oct 22 04:13:23 1995 ++++ mod.c Sat Jan 27 15:04:15 2001 +@@ -11,7 +11,7 @@ + + + #ifdef GUS +-#include <sys/ultrasound.h> ++#include <machine/ultrasound.h> + #include "gus.h" + #endif /* GUS */ + +@@ -130,8 +130,10 @@ + /* Portamento Down */ + if ((track->period += track->port_down) > track->period_high_limit) + track->period = track->period_high_limit; +- track->pitch = track->finetune_rate / track->period; +- ++ if (track->period != 0) ++ track->pitch = track->finetune_rate / track->period; ++ else ++ track->pitch = 1; + track->playing_period = track->period; + } + |