[Inagaki] Add GameAudio::GameSoundTable implementation - #70
Conversation
Report for MarioClub_us (c17c5c3 - a43c9fb)📈 Matched code: 46.50% (+0.10%, +3100 bytes) ✅ 17 new matches
📉 1 regression in an unmatched item
|
00792d7 to
7e6a16c
Compare
a7132c6 to
bd3e26b
Compare
|
Nice job! There are a few minor things that could probably be improved, but i suggest taking a look at Z2SoundInfo from Twilight Princess considering it looks like that was based of MKDD's audio library |
| static inline bool isValid() { | ||
| bool resourceNotNull = false; | ||
| if(JASGlobalInstance<JAUSoundTable>::sInstance != NULL | ||
| && JASGlobalInstance<JAUSoundTable>::sInstance->getResource() != NULL) | ||
| { | ||
| resourceNotNull = true; | ||
| } | ||
| return resourceNotNull; | ||
| } |
There was a problem hiding this comment.
This chould be moved to the header and the temp value resourceNotNull probably isn't needed
There was a problem hiding this comment.
Done! I looked at TP implementation ;)
| #line 27 | ||
| JUT_ASSERT(isValid()); | ||
|
|
||
| JAUSoundTableItem* tableItem = JASGlobalInstance<JAUSoundTable>::sInstance->getData(soundID); |
There was a problem hiding this comment.
for every instance of JASGlobalInstance<JAUSoundTable>::sInstance use JASGlobalInstance<JAUSoundTable>::getInstance() instead
bd3e26b to
a43c9fb
Compare
Add GameAudio::GameSoundTable class implementation