Skip to content

Commit

Permalink
Use ints instead of shorts for NoteInfo struct as it's actually a lit…
Browse files Browse the repository at this point in the history
…tle bit slower and doesn't save space due to 4 byte float alignment.
  • Loading branch information
xwidghet committed Feb 15, 2017
1 parent 3e2509a commit 204c764
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified extern/MinaCalc/MinaCalc.lib
Binary file not shown.
2 changes: 1 addition & 1 deletion src/NoteData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ vector<NoteInfo> NoteData::SerializeNoteData(const vector<float>& etaner) {
int tracks = GetNumTracks();
for (size_t i = 0; i < NonEmptyRowVector.size(); i++)
{
short rowNotes = 0;
int rowNotes = 0;
for (size_t q = 0; q < tracks; q++)
{
if(GetTapNote(q, NonEmptyRowVector[i]).IsNote())
Expand Down
2 changes: 1 addition & 1 deletion src/NoteDataStructures.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define __NDSTRUCTS__

struct NoteInfo {
short notes;
int notes;
float rowTime;
};

Expand Down

0 comments on commit 204c764

Please sign in to comment.