Skip to content

Commit c558034

Browse files
committed
[NCSF] Fix subtle rare clipping issues in some songs
1 parent 55e6822 commit c558034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/in_ncsf/SSEQPlayer/common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,12 @@ inline int Cnv_Sust(int sust)
221221

222222
inline int Cnv_Sine(int arg)
223223
{
224+
static const int lut_size = 32;
224225
static const std::int8_t lut[] =
225226
{
226227
0, 6, 12, 19, 25, 31, 37, 43, 49, 54, 60, 65, 71, 76, 81, 85, 90, 94,
227228
98, 102, 106, 109, 112, 115, 117, 120, 122, 123, 125, 126, 126, 127, 127
228229
};
229-
static const int lut_size = sizeof(lut) / sizeof(std::int8_t);
230230

231231
if (arg < lut_size)
232232
return lut[arg];

0 commit comments

Comments
 (0)