This website works better with JavaScript.
Home
Explore
Sign In
mahta.fetrat
/
HomoFast-eSpeak-Persian
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix overflow while capping to signed 16bit
master
Samuel Thibault
3 years ago
parent
c91aa78363
commit
90c035c406
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
1
1
src/libespeak-ng/wavegen.c
+ 1
- 1
src/libespeak-ng/wavegen.c
View File
@@ -972,7 +972,7 @@ static int PlayWave(int length, bool resume, unsigned char *data, int scale, int
value += ((echo_buf[echo_tail++] * echo_amp) >> 8);
if (value > 32767)
value = 3276
8
;
value = 3276
7
;
else if (value < -32768)
value = -32768;
Write
Preview
Loading…
Cancel
Save