diff options
author | ben <ben@pkgsrc.org> | 2004-02-15 06:00:26 +0000 |
---|---|---|
committer | ben <ben@pkgsrc.org> | 2004-02-15 06:00:26 +0000 |
commit | 61f8e4a73cd7afa3dc7fa659fa426d70334a57ae (patch) | |
tree | 9a312e98d582e0809cafefba80749792a25ea6a8 /audio/spiralsynth | |
parent | 949927ae12ade8155fafcf9c9fe048c03b61a1ee (diff) | |
download | pkgsrc-61f8e4a73cd7afa3dc7fa659fa426d70334a57ae.tar.gz |
Make SpiralSynth run in 1.6ZF. Some code expected declared pointers to be
zeroed, and coredumped with nonsense values. Explicitly initialize to
zero.
Diffstat (limited to 'audio/spiralsynth')
-rw-r--r-- | audio/spiralsynth/patches/patch-ak | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/spiralsynth/patches/patch-ak b/audio/spiralsynth/patches/patch-ak new file mode 100644 index 00000000000..ccf9b2bbf19 --- /dev/null +++ b/audio/spiralsynth/patches/patch-ak @@ -0,0 +1,13 @@ +$NetBSD: patch-ak,v 1.1 2004/02/15 06:00:26 ben Exp $ + +--- SpiralSound/Oscillator.C.orig 2000-11-26 07:52:41.000000000 -0800 ++++ SpiralSound/Oscillator.C +@@ -37,6 +37,8 @@ m_ModAmount(0.01f) + m_Note=new int[SpiralInfo::POLY]; + m_LastFreq=new float[SpiralInfo::POLY]; + m_Volume=new char[SpiralInfo::POLY]; ++ m_FreqModBuf = 0; /* initialize to avoid risk of coredump */ ++ m_PulseWidthModBuf = 0; /* initialize to avoid risk of coredump */ + + for (int n=0; n<SpiralInfo::POLY; n++) + { |