Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37747456
en ru br
ALT Linux repos
S:1.48.04-alt3
5.0: 1.44.05-alt0.M50.1
4.1: 1.44.05-alt0.M41.2
4.0: 1.44.05-alt0.M40.1

Group :: Sound
RPM: espeak

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: espeak-1.47-wav-close.patch
Download


diff --git a/src/espeak.cpp b/src/espeak.cpp
index 00f93c1..4ad42e8 100644
--- a/src/espeak.cpp
+++ b/src/espeak.cpp
@@ -281,10 +281,7 @@ static int SynthCallback(short *wav, int numsamples, espeak_EVENT *events)
 	if(quiet) return(0);  // -q quiet mode
 
 	if(wav == NULL)
-	{
-		CloseWavFile();
 		return(0);
-	}
 
 	while(events->type != 0)
 	{
@@ -805,5 +802,7 @@ int main (int argc, char **argv)
 
 	if(f_phonemes_out != stdout)
 		fclose(f_phonemes_out);  // needed for WinCE
+	CloseWavFile();
+	espeak_Terminate();
 	return(0);
 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin