Import SDK Types

This commit is contained in:
gamemasterplc 2023-11-22 14:01:55 -06:00
parent 84b3e69630
commit 4fe4c38e0d
86 changed files with 6528 additions and 27 deletions

47
include/dolphin/dtk.h Normal file
View file

@ -0,0 +1,47 @@
#ifndef _DOLPHIN_DTK
#define _DOLPHIN_DTK
#include <dolphin/dvd.h>
#include <dolphin/types.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*DTKCallback)(u32 eventMask);
typedef void (*DTKFlushCallback)(void);
typedef struct DTKTrack {
struct DTKTrack* prev;
struct DTKTrack* next;
char* fileName;
u32 eventMask;
DTKCallback callback;
DVDFileInfo dvdFileInfo;
} DTKTrack;
void DTKInit(void);
void DTKShutdown(void);
u32 DTKQueueTrack(char* fileName, DTKTrack* track, u32 eventMask, DTKCallback callback);
u32 DTKRemoveTrack(DTKTrack* track);
void DTKFlushTracks(DTKFlushCallback callback);
void DTKSetSampleRate(u32 samplerate);
u32 DTKGetSampleRate(void);
void DTKSetInterruptFrequency(u32 samples);
u32 DTKGetInterruptFrequency(void);
void DTKSetRepeatMode(u32 repeat);
u32 DTKGetRepeatMode(void);
void DTKSetState(u32 state);
u32 DTKGetState(void);
void DTKNextTrack(void);
void DTKPrevTrack(void);
u32 DTKGetPosition(void);
DTKTrack* DTKGetCurrentTrack(void);
void DTKSetVolume(u8 left, u8 right);
u16 DTKGetVolume(void);
#ifdef __cplusplus
}
#endif
#endif // _DOLPHIN_DTK