Files
tp/libs/JSystem/JAudio2/JAISoundHandles.cpp
T

39 lines
934 B
C++
Raw Normal View History

2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Generated By: dol2asm
// Translation Unit: JAISoundHandles
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-01 02:07:58 +02:00
#include "JSystem/JAudio2/JAISoundHandles.h"
2021-03-28 22:49:05 +02:00
2021-04-01 02:07:58 +02:00
//
2021-03-31 23:22:32 +02:00
// Forward References:
2021-04-01 02:07:58 +02:00
//
2021-03-31 23:22:32 +02:00
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Declarations:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 802A2C98-802A2CF4 29D5D8 005C+00 0/0 1/1 0/0 .text
2021-04-01 02:07:58 +02:00
* getHandleSoundID__15JAISoundHandlesF10JAISoundID */
2023-08-01 10:17:21 +03:00
JAISoundHandle* JAISoundHandles::getHandleSoundID(JAISoundID param_0) {
for (int i = 0; i < numHandles_; i++) {
if (mSoundHandle[i].isSoundAttached()) {
if (JAISoundID(mSoundHandle[i]->soundID) == param_0) {
return &mSoundHandle[i];
}
}
}
return NULL;
2021-03-28 22:49:05 +02:00
}
2021-04-06 18:00:35 +02:00
/* 802A2CF4-802A2D34 29D634 0040+00 0/0 2/2 0/0 .text getFreeHandle__15JAISoundHandlesFv
*/
2023-08-01 10:17:21 +03:00
JAISoundHandle* JAISoundHandles::getFreeHandle() {
for (int i = 0; i < numHandles_; i++) {
if (!mSoundHandle[i].isSoundAttached()) {
return &mSoundHandle[i];
}
}
return NULL;
2021-03-28 22:49:05 +02:00
}