mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-08 23:47:27 +00:00
[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:
+6
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user