mirror of https://github.com/zeldaret/tp.git
				
				
				
			
		
			
				
	
	
		
			265 lines
		
	
	
		
			7.7 KiB
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			265 lines
		
	
	
		
			7.7 KiB
		
	
	
	
		
			C++
		
	
	
	
| //
 | |
| // Generated By: dol2asm
 | |
| // Translation Unit: JAIStreamMgr
 | |
| //
 | |
| 
 | |
| #include "JSystem/JAudio2/JAIStreamMgr.h"
 | |
| #include "dol2asm.h"
 | |
| #include "dolphin/types.h"
 | |
| 
 | |
| //
 | |
| // Types:
 | |
| //
 | |
| 
 | |
| struct JSUPtrLink {
 | |
|     /* 802DBE14 */ ~JSUPtrLink();
 | |
| };
 | |
| 
 | |
| struct JSUPtrList {
 | |
|     /* 802DBF14 */ void initiate();
 | |
|     /* 802DBF4C */ void append(JSUPtrLink*);
 | |
|     /* 802DC15C */ void remove(JSUPtrLink*);
 | |
| };
 | |
| 
 | |
| struct JGeometry {
 | |
|     template <typename A1>
 | |
|     struct TVec3 {};
 | |
|     /* TVec3<f32> */
 | |
|     struct TVec3__template0 {};
 | |
| };
 | |
| 
 | |
| struct JASSoundParams {};
 | |
| 
 | |
| template <typename A0>
 | |
| struct JASMemPool {};
 | |
| /* JASMemPool<JAIStream> */
 | |
| struct JASMemPool__template3 {
 | |
|     /* 802A3E68 */ void func_802A3E68(void* _this);
 | |
| };
 | |
| 
 | |
| struct JASGenericMemPool {
 | |
|     /* 80290848 */ JASGenericMemPool();
 | |
|     /* 80290860 */ ~JASGenericMemPool();
 | |
|     /* 80290948 */ void alloc(u32);
 | |
|     /* 80290994 */ void free(void*, u32);
 | |
| };
 | |
| 
 | |
| struct JAISoundID {};
 | |
| 
 | |
| struct JAISoundHandle {};
 | |
| 
 | |
| struct JAIStreamMgr {
 | |
|     /* 802A3B68 */ JAIStreamMgr(bool);
 | |
|     /* 802A3C3C */ void startSound(JAISoundID, JAISoundHandle*, JGeometry::TVec3<f32> const*);
 | |
|     /* 802A3D70 */ void freeDeadStream_();
 | |
|     /* 802A3EBC */ void calc();
 | |
|     /* 802A4028 */ void stop();
 | |
|     /* 802A4068 */ void stop(u32);
 | |
|     /* 802A40B8 */ void stopSoundID(JAISoundID);
 | |
|     /* 802A4118 */ void mixOut();
 | |
|     /* 802A4174 */ void newStream_();
 | |
| };
 | |
| 
 | |
| struct JAISoundActivity {};
 | |
| 
 | |
| template <typename A0>
 | |
| struct JAISoundStrategyMgr {};
 | |
| /* JAISoundStrategyMgr<JAIStream> */
 | |
| struct JAISoundStrategyMgr__template2 {};
 | |
| 
 | |
| struct JAIAudience {};
 | |
| 
 | |
| struct JAIStream {
 | |
|     /* 802A3104 */ JAIStream(JAIStreamMgr*, JAISoundStrategyMgr<JAIStream>*);
 | |
|     /* 802A319C */ void JAIStreamMgr_startID_(JAISoundID, s32, JGeometry::TVec3<f32> const*,
 | |
|                                               JAIAudience*, int);
 | |
|     /* 802A34E4 */ void JAIStreamMgr_mixOut_(JASSoundParams const&, JAISoundActivity);
 | |
|     /* 802A388C */ void JAIStreamMgr_calc_();
 | |
| };
 | |
| 
 | |
| struct JAISound {
 | |
|     /* 802A21BC */ void attachHandle(JAISoundHandle*);
 | |
|     /* 802A2598 */ void stop();
 | |
|     /* 802A24DC */ void stop(u32);
 | |
| };
 | |
| 
 | |
| //
 | |
| // Forward References:
 | |
| //
 | |
| 
 | |
| extern "C" void __ct__12JAIStreamMgrFb();
 | |
| extern "C" void func_802A3C3C();
 | |
| extern "C" void freeDeadStream___12JAIStreamMgrFv();
 | |
| extern "C" void func_802A3E68(void* _this);
 | |
| extern "C" void calc__12JAIStreamMgrFv();
 | |
| extern "C" void stop__12JAIStreamMgrFv();
 | |
| extern "C" void stop__12JAIStreamMgrFUl();
 | |
| extern "C" void stopSoundID__12JAIStreamMgrF10JAISoundID();
 | |
| extern "C" void mixOut__12JAIStreamMgrFv();
 | |
| extern "C" void newStream___12JAIStreamMgrFv();
 | |
| 
 | |
| //
 | |
| // External References:
 | |
| //
 | |
| 
 | |
| extern "C" void __ct__17JASGenericMemPoolFv();
 | |
| extern "C" void __dt__17JASGenericMemPoolFv();
 | |
| extern "C" void alloc__17JASGenericMemPoolFUl();
 | |
| extern "C" void free__17JASGenericMemPoolFPvUl();
 | |
| extern "C" void attachHandle__8JAISoundFP14JAISoundHandle();
 | |
| extern "C" void stop__8JAISoundFUl();
 | |
| extern "C" void stop__8JAISoundFv();
 | |
| extern "C" void func_802A3104();
 | |
| extern "C" void func_802A319C();
 | |
| extern "C" void JAIStreamMgr_mixOut___9JAIStreamFRC14JASSoundParams16JAISoundActivity();
 | |
| extern "C" void JAIStreamMgr_calc___9JAIStreamFv();
 | |
| extern "C" void __dl__FPv();
 | |
| extern "C" void __dt__10JSUPtrLinkFv();
 | |
| extern "C" void initiate__10JSUPtrListFv();
 | |
| extern "C" void append__10JSUPtrListFP10JSUPtrLink();
 | |
| extern "C" void remove__10JSUPtrListFP10JSUPtrLink();
 | |
| extern "C" void __register_global_object();
 | |
| extern "C" void _savegpr_25();
 | |
| extern "C" void _savegpr_29();
 | |
| extern "C" void _restgpr_25();
 | |
| extern "C" void _restgpr_29();
 | |
| extern "C" extern void* __vt__9JAIStream[12];
 | |
| extern "C" extern u8 data_80450B5C[4];
 | |
| extern "C" extern u8 data_80450B64[4];
 | |
| extern "C" extern u8 data_80451328[8];
 | |
| 
 | |
| //
 | |
| // Declarations:
 | |
| //
 | |
| 
 | |
| /* ############################################################################################## */
 | |
| /* 80455800-80455804 003E00 0004+00 1/1 0/0 0/0 .sdata2          @653 */
 | |
| SECTION_SDATA2 static f32 lit_653 = 1.0f;
 | |
| 
 | |
| /* 80455804-80455808 003E04 0004+00 1/1 0/0 0/0 .sdata2          @654 */
 | |
| SECTION_SDATA2 static u8 lit_654[4] = {
 | |
|     0x00,
 | |
|     0x00,
 | |
|     0x00,
 | |
|     0x00,
 | |
| };
 | |
| 
 | |
| /* 80455808-80455810 003E08 0004+04 1/1 0/0 0/0 .sdata2          @655 */
 | |
| SECTION_SDATA2 static f32 lit_655[1 + 1 /* padding */] = {
 | |
|     0.5f,
 | |
|     /* padding */
 | |
|     0.0f,
 | |
| };
 | |
| 
 | |
| /* 802A3B68-802A3C3C 29E4A8 00D4+00 0/0 1/1 0/0 .text            __ct__12JAIStreamMgrFb */
 | |
| #pragma push
 | |
| #pragma optimization_level 0
 | |
| #pragma optimizewithasm off
 | |
| asm JAIStreamMgr::JAIStreamMgr(bool param_0) {
 | |
|     nofralloc
 | |
| #include "asm/JSystem/JAudio2/JAIStreamMgr/__ct__12JAIStreamMgrFb.s"
 | |
| }
 | |
| #pragma pop
 | |
| 
 | |
| /* 802A3C3C-802A3D70 29E57C 0134+00 0/0 1/1 0/0 .text
 | |
|  * startSound__12JAIStreamMgrF10JAISoundIDP14JAISoundHandlePCQ29JGeometry8TVec3<f> */
 | |
| #pragma push
 | |
| #pragma optimization_level 0
 | |
| #pragma optimizewithasm off
 | |
| asm void JAIStreamMgr::startSound(JAISoundID param_0, JAISoundHandle* param_1,
 | |
|                                   JGeometry::TVec3<f32> const* param_2) {
 | |
|     nofralloc
 | |
| #include "asm/JSystem/JAudio2/JAIStreamMgr/func_802A3C3C.s"
 | |
| }
 | |
| #pragma pop
 | |
| 
 | |
| /* ############################################################################################## */
 | |
| /* 804340F0-804340FC 060E10 000C+00 2/2 0/0 0/0 .bss             @745 */
 | |
| static u8 lit_745[12];
 | |
| 
 | |
| /* 804340FC-80434110 060E1C 0010+04 2/2 1/1 0/0 .bss
 | |
|  * memPool_$localstatic3$getMemPool___30JASPoolAllocObject<9JAIStream>Fv */
 | |
| extern u8 data_804340FC[16 + 4 /* padding */];
 | |
| u8 data_804340FC[16 + 4 /* padding */];
 | |
| 
 | |
| /* 802A3D70-802A3E68 29E6B0 00F8+00 1/1 0/0 0/0 .text            freeDeadStream___12JAIStreamMgrFv
 | |
|  */
 | |
| #pragma push
 | |
| #pragma optimization_level 0
 | |
| #pragma optimizewithasm off
 | |
| asm void JAIStreamMgr::freeDeadStream_() {
 | |
|     nofralloc
 | |
| #include "asm/JSystem/JAudio2/JAIStreamMgr/freeDeadStream___12JAIStreamMgrFv.s"
 | |
| }
 | |
| #pragma pop
 | |
| 
 | |
| /* 802A3E68-802A3EBC 29E7A8 0054+00 2/2 1/1 0/0 .text            __dt__22JASMemPool<9JAIStream>Fv */
 | |
| #pragma push
 | |
| #pragma optimization_level 0
 | |
| #pragma optimizewithasm off
 | |
| extern "C" asm void func_802A3E68(void* _this) {
 | |
|     nofralloc
 | |
| #include "asm/JSystem/JAudio2/JAIStreamMgr/func_802A3E68.s"
 | |
| }
 | |
| #pragma pop
 | |
| 
 | |
| /* 802A3EBC-802A4028 29E7FC 016C+00 0/0 1/1 0/0 .text            calc__12JAIStreamMgrFv */
 | |
| #pragma push
 | |
| #pragma optimization_level 0
 | |
| #pragma optimizewithasm off
 | |
| asm void JAIStreamMgr::calc() {
 | |
|     nofralloc
 | |
| #include "asm/JSystem/JAudio2/JAIStreamMgr/calc__12JAIStreamMgrFv.s"
 | |
| }
 | |
| #pragma pop
 | |
| 
 | |
| /* 802A4028-802A4068 29E968 0040+00 0/0 1/1 0/0 .text            stop__12JAIStreamMgrFv */
 | |
| #pragma push
 | |
| #pragma optimization_level 0
 | |
| #pragma optimizewithasm off
 | |
| asm void JAIStreamMgr::stop() {
 | |
|     nofralloc
 | |
| #include "asm/JSystem/JAudio2/JAIStreamMgr/stop__12JAIStreamMgrFv.s"
 | |
| }
 | |
| #pragma pop
 | |
| 
 | |
| /* 802A4068-802A40B8 29E9A8 0050+00 0/0 2/2 0/0 .text            stop__12JAIStreamMgrFUl */
 | |
| #pragma push
 | |
| #pragma optimization_level 0
 | |
| #pragma optimizewithasm off
 | |
| asm void JAIStreamMgr::stop(u32 param_0) {
 | |
|     nofralloc
 | |
| #include "asm/JSystem/JAudio2/JAIStreamMgr/stop__12JAIStreamMgrFUl.s"
 | |
| }
 | |
| #pragma pop
 | |
| 
 | |
| /* 802A40B8-802A4118 29E9F8 0060+00 0/0 1/1 0/0 .text stopSoundID__12JAIStreamMgrF10JAISoundID */
 | |
| #pragma push
 | |
| #pragma optimization_level 0
 | |
| #pragma optimizewithasm off
 | |
| asm void JAIStreamMgr::stopSoundID(JAISoundID param_0) {
 | |
|     nofralloc
 | |
| #include "asm/JSystem/JAudio2/JAIStreamMgr/stopSoundID__12JAIStreamMgrF10JAISoundID.s"
 | |
| }
 | |
| #pragma pop
 | |
| 
 | |
| /* 802A4118-802A4174 29EA58 005C+00 0/0 1/1 0/0 .text            mixOut__12JAIStreamMgrFv */
 | |
| #pragma push
 | |
| #pragma optimization_level 0
 | |
| #pragma optimizewithasm off
 | |
| asm void JAIStreamMgr::mixOut() {
 | |
|     nofralloc
 | |
| #include "asm/JSystem/JAudio2/JAIStreamMgr/mixOut__12JAIStreamMgrFv.s"
 | |
| }
 | |
| #pragma pop
 | |
| 
 | |
| /* 802A4174-802A4244 29EAB4 00D0+00 1/1 0/0 0/0 .text            newStream___12JAIStreamMgrFv */
 | |
| #pragma push
 | |
| #pragma optimization_level 0
 | |
| #pragma optimizewithasm off
 | |
| asm void JAIStreamMgr::newStream_() {
 | |
|     nofralloc
 | |
| #include "asm/JSystem/JAudio2/JAIStreamMgr/newStream___12JAIStreamMgrFv.s"
 | |
| }
 | |
| #pragma pop
 |