[1.27.08] Fix to inheriting voice attributes over <speak> and <voice> tags.

git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@63 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-07-10 16:10:26 +00:00
parent 0c3b856173
commit 3546b19965
9 changed files with 99 additions and 64 deletions
+6 -1
View File
@@ -1001,8 +1001,13 @@ static void DoMarker(int type, int char_posn, int length, int value)
static void DoVoice(voice_t *v)
{//============================
// allocate memory for a copy of the voice data, and free it in wavegenfill()
voice_t *v2;
v2 = (voice_t *)malloc(sizeof(voice_t));
memcpy(v2,v,sizeof(voice_t));
wcmdq[wcmdq_tail][0] = WCMD_VOICE;
wcmdq[wcmdq_tail][1] = (long)v;
wcmdq[wcmdq_tail][1] = (long)(v2);
WcmdqInc();
}