summaryrefslogtreecommitdiff
path: root/audio/spiralsynth/patches/patch-ak
blob: ccf9b2bbf197d5254dec9c1b65b9070d39723df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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++)
 	{