Skip to content

Commit 22f0759

Browse files
committed
[NCSF] Super minor cleanups.
1 parent 9a46d97 commit 22f0759

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/in_ncsf/SSEQPlayer/Player.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Player::Player() : prio(0), nTracks(0), tempo(0), tempoCount(0), tempoRate(0), m
1515
interpolation(INTERPOLATION_NONE)
1616
{
1717
memset(this->trackIds, 0, sizeof(this->trackIds));
18-
for (size_t i = 0; i < 16; ++i)
18+
for (int8_t i = 0; i < 16; ++i)
1919
{
2020
this->channels[i].chnId = i;
2121
this->channels[i].ply = this;

src/in_ncsf/SSEQPlayer/common.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct PseudoFile
4242
arr[i] = this->ReadLE<T>();
4343
}
4444

45-
template<size_t N> void ReadLE( uint8_t arr[N])
45+
template<size_t N> void ReadLE(uint8_t arr[N])
4646
{
4747
memcpy(&arr[0], &(*this->data)[this->pos], N);
4848
this->pos += N;
@@ -217,12 +217,12 @@ inline int Cnv_Sust(int sust)
217217

218218
inline int Cnv_Sine(int arg)
219219
{
220-
static const int lut_size = 32;
221220
static const int8_t lut[] =
222221
{
223222
0, 6, 12, 19, 25, 31, 37, 43, 49, 54, 60, 65, 71, 76, 81, 85, 90, 94,
224223
98, 102, 106, 109, 112, 115, 117, 120, 122, 123, 125, 126, 126, 127, 127
225224
};
225+
static const int lut_size = sizeof(lut) / sizeof(int8_t);
226226

227227
if (arg < lut_size)
228228
return lut[arg];

0 commit comments

Comments
 (0)