freebsd-ports/audio/spiralsynth/files/patch-SpiralSound_Oscillator.C
Pietro Cerutti 9c4b64a964 - Unbreak - fix build with latest x11-toolkits/fltk
- Fix a runtime segfault due to an uninitialized pointer

Feature safe:	yes
2011-11-15 13:26:36 +00:00

14 lines
397 B
C

--- SpiralSound/Oscillator.C.orig 2011-11-15 14:22:27.000000000 +0100
+++ SpiralSound/Oscillator.C 2011-11-15 14:22:21.000000000 +0100
@@ -30,7 +30,10 @@
m_PulseWidth(0.5f),
m_PortmentoSpeed(1),
m_DesiredFreq(0),
-m_ModAmount(0.01f)
+m_ModAmount(0.01f),
+m_FreqModBuf(0),
+m_PulseWidthModBuf(0),
+m_SHModBuf(0)
{
m_CyclePos=new int[SpiralInfo::POLY];
m_InOctave=new int[SpiralInfo::POLY];