@@ -335,7 +335,7 @@ void Render(sam_memory* sam)
335
335
unsigned char mem44 = 0 ;
336
336
int i ;
337
337
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
339
339
340
340
A = 0 ;
341
341
X = 0 ;
355
355
// get the index
356
356
Y = mem44 ;
357
357
// get the phoneme at the index
358
- A = sam -> common .phonemeIndexOutput [mem44 ];
358
+ A = sam -> common .phoneme_output [mem44 ]. index ;
359
359
mem56 = A ;
360
360
361
361
// if terminal phoneme, exit the loop
362
- if (A == 255 ) break ;
362
+ if (A == PHONEME_END ) break ;
363
363
364
364
// period phoneme *.
365
365
if (A == 1 )
384
384
// pos47615:
385
385
386
386
// 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 ];
388
388
389
389
// get number of frames to write
390
- phase2 = sam -> common .phonemeLengthOutput [Y ];
390
+ phase2 = sam -> common .phoneme_output [Y ]. length ;
391
391
Y = mem56 ;
392
392
393
393
// copy from the source to the frames list
547
547
while (1 ) //while No. 1
548
548
{
549
549
// 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 ;
552
552
X ++ ;
553
553
554
554
// exit loop at end token
555
- if (A == 255 ) break ;//goto pos47970;
555
+ if (A == PHONEME_END ) break ;//goto pos47970;
556
556
557
557
558
558
// get the ranking of each phoneme
581
581
}
582
582
583
583
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
585
585
mem49 = A ; // mem49 now holds length + position
586
586
A = A + phase2 ; //Maybe Problem because of carry flag
587
587
619
619
620
620
unsigned char mem36 , mem37 ;
621
621
// half the width of the current phoneme
622
- mem36 = sam -> common .phonemeLengthOutput [mem44 ] >> 1 ;
622
+ mem36 = sam -> common .phoneme_output [mem44 ]. length >> 1 ;
623
623
// 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 ;
625
625
// sum the values
626
626
mem40 = mem36 + mem37 ; // length of both halves
627
627
mem37 += mem49 ; // center of next phoneme
695
695
//pos47970:
696
696
697
697
// add the length of this phoneme
698
- mem48 = mem49 + sam -> common .phonemeLengthOutput [mem44 ];
698
+ mem48 = mem49 + sam -> common .phoneme_output [mem44 ]. length ;
699
699
700
700
701
701
// ASSIGN PITCH CONTOUR
0 commit comments