summaryrefslogtreecommitdiff
path: root/ham/linpsk/patches/patch-src_csound.cpp
blob: be71a2556442f43055ca075bcc87b92ded1a61fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-src_csound.cpp,v 1.2 2016/12/25 21:45:09 joerg Exp $

--- src/csound.cpp.orig	2005-02-20 10:05:46.000000000 +0000
+++ src/csound.cpp
@@ -81,7 +81,7 @@ return 0; 
   
 }
                                                           
-CSound::CSound(int ptt = -1):Input(ptt)
+CSound::CSound(int ptt):Input(ptt)
 {
 stream=0;
 audio_buffer.maxbuf=3*BUF_SIZE; // We take 3 buffers
@@ -92,7 +92,7 @@ output=false;
 }
 CSound::~CSound()
 {
-if ( audio_buffer.audiobuffer >0)
+if ( audio_buffer.audiobuffer )
 	delete audio_buffer.audiobuffer;
 }