Files
tp/include/JSystem/JAudio2/JAIStream.h
T

58 lines
1.8 KiB
C++
Raw Normal View History

2021-03-28 22:49:05 +02:00
#ifndef JAISTREAM_H
#define JAISTREAM_H
2023-07-18 22:57:25 -07:00
#include "JSystem/JAudio2/JAISound.h"
2023-09-07 09:50:36 -07:00
#include "JSystem/JAudio2/JASAramStream.h"
#include "JSystem/JSupport/JSUList.h"
class JAIStreamMgr;
2024-04-12 00:10:30 -06:00
/**
* @ingroup jsystem-jaudio
*
*/
2024-02-09 01:30:28 +02:00
class JAIStream : public JASPoolAllocObject<JAIStream>, public JAISound, public JSULink<JAIStream> {
2023-09-07 09:50:36 -07:00
public:
struct TInner {
JASAramStream aramStream_;
2023-09-07 09:50:36 -07:00
};
2025-11-30 14:23:42 -08:00
JAIStream(JAIStreamMgr* streamMgr, JAISoundStrategyMgr<JAIStream>* soundStrategyMgr);
void JAIStreamMgr_startID_(JAISoundID id, s32 streamFileEntry,
const JGeometry::TVec3<f32>* posPtr, JAIAudience* audience,
int category);
2025-11-30 14:23:42 -08:00
bool prepare_prepareStream_();
void prepare_();
void prepare_startStream_();
void JAIStreamMgr_mixOut_(const JASSoundParams& inParams, JAISoundActivity activity);
void die_JAIStream_();
bool JAISound_tryDie_();
void JAIStreamMgr_calc_();
s32 getNumChild() const;
JAISoundChild* getChild(int index);
void releaseChild(int index);
JASTrack* getTrack();
JASTrack* getChildTrack(int);
JAIStream* asStream();
JAITempoMgr* getTempoMgr();
2023-09-07 09:50:36 -07:00
void* JAIStreamMgr_getAramAddr_() const { return streamAramAddr_; }
2024-02-09 01:30:28 +02:00
static const int NUM_CHILDREN = 6;
/* 0x0A8 */ TInner inner_;
2023-09-07 09:50:36 -07:00
/* 0x290 */ int field_0x290;
/* 0x294 */ s32 field_0x294;
/* 0x298 */ int field_0x298;
/* 0x29C */ void* streamAramAddr_;
/* 0x2A0 */ JAISoundChild* children_[NUM_CHILDREN];
/* 0x2B8 */ JAIStreamMgr* streamMgr_;
2024-02-09 01:30:28 +02:00
/* 0x2BC */ JAISoundStrategyMgr__unknown<JAIStream>* field_0x2bc;
2023-09-07 09:50:36 -07:00
/* 0x2C0 */ JAISoundStrategyMgr<JAIStream>* field_0x2c0;
/* 0x2C4 */ bool field_0x2c4;
2023-09-07 09:50:36 -07:00
/* 0x2C5 */ u8 field_0x2c5;
/* 0x2C6 */ u8 field_0x2c6;
};
2021-03-28 22:49:05 +02:00
#endif /* JAISTREAM_H */