2021-03-28 22:49:05 +02:00
|
|
|
#ifndef JASTRACKPORT_H
|
|
|
|
|
#define JASTRACKPORT_H
|
|
|
|
|
|
2023-09-01 01:55:46 -07:00
|
|
|
#include "dolphin/types.h"
|
|
|
|
|
|
2024-04-12 00:10:30 -06:00
|
|
|
/**
|
|
|
|
|
* @ingroup jsystem-jaudio
|
|
|
|
|
*
|
|
|
|
|
*/
|
2023-09-01 01:55:46 -07:00
|
|
|
class JASTrackPort {
|
|
|
|
|
public:
|
2025-12-26 13:20:53 -08:00
|
|
|
static const int MAX_PORTS = 16;
|
|
|
|
|
|
2025-11-30 14:23:42 -08:00
|
|
|
void init();
|
|
|
|
|
u16 readImport(u32);
|
|
|
|
|
u16 readExport(u32);
|
|
|
|
|
void writeImport(u32, u16);
|
|
|
|
|
void writeExport(u32, u16);
|
|
|
|
|
u32 checkImport(u32) const;
|
|
|
|
|
u32 checkExport(u32) const;
|
2023-09-01 01:55:46 -07:00
|
|
|
|
2025-04-13 21:55:52 +03:00
|
|
|
u16 get(u32 param_0) const { return field_0x4[param_0]; }
|
2023-09-01 01:55:46 -07:00
|
|
|
void set(u32 param_0, u16 param_1) { field_0x4[param_0] = param_1; }
|
|
|
|
|
|
|
|
|
|
u16 field_0x0;
|
|
|
|
|
u16 field_0x2;
|
2025-12-26 13:20:53 -08:00
|
|
|
u16 field_0x4[MAX_PORTS];
|
2023-09-01 01:55:46 -07:00
|
|
|
};
|
2021-03-28 22:49:05 +02:00
|
|
|
|
|
|
|
|
#endif /* JASTRACKPORT_H */
|