2021-03-28 22:49:05 +02:00
|
|
|
#ifndef Z2SOUNDSTARTER_H
|
|
|
|
|
#define Z2SOUNDSTARTER_H
|
|
|
|
|
|
2022-08-30 14:22:17 -07:00
|
|
|
#include "JSystem/JAudio2/JAISoundStarter.h"
|
2021-03-28 22:49:05 +02:00
|
|
|
|
2023-02-16 13:09:22 -08:00
|
|
|
struct Z2SoundStarter : public JAISoundStarter, public JASGlobalInstance<Z2SoundStarter> {
|
2025-11-27 21:19:33 -08:00
|
|
|
Z2SoundStarter(bool setInstance);
|
|
|
|
|
void setPortData(JAISoundHandle* handlePtr, u32 portNum, u16 data, s8 childIndex);
|
|
|
|
|
u16 getPortData(JAISoundHandle* handlePtr, u32 portNum, s8 childIndex);
|
2021-05-23 03:09:59 -07:00
|
|
|
|
2024-01-13 15:41:29 +02:00
|
|
|
virtual ~Z2SoundStarter() {}
|
2025-11-27 21:19:33 -08:00
|
|
|
virtual bool startSound(JAISoundID soundID, JAISoundHandle* handlePtr, const JGeometry::TVec3<f32>* posPtr);
|
|
|
|
|
virtual bool startSound(JAISoundID soundID, JAISoundHandle* handlePtr,
|
|
|
|
|
const JGeometry::TVec3<f32>* posPtr, u32 mapinfo, f32 fxMix,
|
|
|
|
|
f32 pitch, f32 volume, f32 pan, f32 dolby, u32 moveSteps);
|
2021-05-23 03:09:59 -07:00
|
|
|
};
|
|
|
|
|
|
2024-01-29 18:50:13 -05:00
|
|
|
inline Z2SoundStarter* Z2GetSoundStarter() {
|
|
|
|
|
return JASGlobalInstance<Z2SoundStarter>::getInstance();
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-28 22:49:05 +02:00
|
|
|
#endif /* Z2SOUNDSTARTER_H */
|