summaryrefslogtreecommitdiff
path: root/audio/festival/patches/patch-af
blob: a10c84ef98ca833d6d6d0e759f5e191b5c994943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-af,v 1.3 2007/09/02 11:02:59 joerg Exp $

--- speech_tools/sigpr/pda/smooth_pda.cc.orig	2007-09-02 09:36:35.000000000 +0000
+++ speech_tools/sigpr/pda/smooth_pda.cc
@@ -112,7 +112,11 @@ void smooth_portion(EST_Track &c, EST_Fe
 
     for (i = 0; i < c.num_frames(); ++i)
     {   // occasionally NaNs result...
+#if defined(isnan)
+	if (isnan(a[i]))
+#else
 	if (isnanf(a[i]))
+#endif
 	{
 	    c.set_break(i);
 	    c.a(i) = 0.0;