@@ -335,7 +335,7 @@ void Render(sam_memory* sam)
335335 unsigned char mem44 = 0 ;
336336 int i ;
337337 int carry ;
338- if (sam -> common .phonemeIndexOutput [0 ] == 255 ) return ; //exit if no data
338+ if (sam -> common .phoneme_output [0 ]. index == PHONEME_END ) return ; //exit if no data
339339
340340 A = 0 ;
341341 X = 0 ;
355355 // get the index
356356 Y = mem44 ;
357357 // get the phoneme at the index
358- A = sam -> common .phonemeIndexOutput [mem44 ];
358+ A = sam -> common .phoneme_output [mem44 ]. index ;
359359 mem56 = A ;
360360
361361 // if terminal phoneme, exit the loop
362- if (A == 255 ) break ;
362+ if (A == PHONEME_END ) break ;
363363
364364 // period phoneme *.
365365 if (A == 1 )
384384 // pos47615:
385385
386386 // get the stress amount (more stress = higher pitch)
387- phase1 = tab47492 [sam -> common .stressOutput [Y ] + 1 ];
387+ phase1 = tab47492 [sam -> common .phoneme_output [Y ]. stress + 1 ];
388388
389389 // get number of frames to write
390- phase2 = sam -> common .phonemeLengthOutput [Y ];
390+ phase2 = sam -> common .phoneme_output [Y ]. length ;
391391 Y = mem56 ;
392392
393393 // copy from the source to the frames list
547547 while (1 ) //while No. 1
548548 {
549549 // get the current and following phoneme
550- Y = sam -> common .phonemeIndexOutput [X ];
551- A = sam -> common .phonemeIndexOutput [X + 1 ];
550+ Y = sam -> common .phoneme_output [X ]. index ;
551+ A = sam -> common .phoneme_output [X + 1 ]. index ;
552552 X ++ ;
553553
554554 // exit loop at end token
555- if (A == 255 ) break ;//goto pos47970;
555+ if (A == PHONEME_END ) break ;//goto pos47970;
556556
557557
558558 // get the ranking of each phoneme
581581 }
582582
583583 Y = mem44 ;
584- A = mem49 + sam -> common .phonemeLengthOutput [mem44 ]; // A is mem49 + length
584+ A = mem49 + sam -> common .phoneme_output [mem44 ]. length ; // A is mem49 + length
585585 mem49 = A ; // mem49 now holds length + position
586586 A = A + phase2 ; //Maybe Problem because of carry flag
587587
619619
620620 unsigned char mem36 , mem37 ;
621621 // half the width of the current phoneme
622- mem36 = sam -> common .phonemeLengthOutput [mem44 ] >> 1 ;
622+ mem36 = sam -> common .phoneme_output [mem44 ]. length >> 1 ;
623623 // half the width of the next phoneme
624- mem37 = sam -> common .phonemeLengthOutput [mem44 + 1 ] >> 1 ;
624+ mem37 = sam -> common .phoneme_output [mem44 + 1 ]. length >> 1 ;
625625 // sum the values
626626 mem40 = mem36 + mem37 ; // length of both halves
627627 mem37 += mem49 ; // center of next phoneme
695695 //pos47970:
696696
697697 // add the length of this phoneme
698- mem48 = mem49 + sam -> common .phonemeLengthOutput [mem44 ];
698+ mem48 = mem49 + sam -> common .phoneme_output [mem44 ]. length ;
699699
700700
701701// ASSIGN PITCH CONTOUR
0 commit comments