
Storytime: Cucky's original SDL2 port work involved using SDL2's threading API to emulate the original WinAPI threading. I can't be assed with that stuff, so I used the same trick Cucky did for the Wii port, and hooked Organya up to the SDL2 audio callback. This actually opens up the possibility for perfectly-synchronised Organya playback. By that I mean, instead of needing a super low-latency audio callback, I can have the callback synchronise its audio mixing with Organya itself. I haven't done it yet, I plan to soon.
15 lines
511 B
C
15 lines
511 B
C
#pragma once
|
|
|
|
#include <stdio.h>
|
|
|
|
long LoadFileToMemory(const char *file_path, unsigned char **file_buffer);
|
|
|
|
unsigned short File_ReadBE16(FILE *stream);
|
|
unsigned long File_ReadBE32(FILE *stream);
|
|
unsigned short File_ReadLE16(FILE *stream);
|
|
unsigned long File_ReadLE32(FILE *stream);
|
|
|
|
void File_WriteBE16(unsigned short value, FILE *stream);
|
|
void File_WriteBE32(unsigned long value, FILE *stream);
|
|
void File_WriteLE16(unsigned short value, FILE *stream);
|
|
void File_WriteLE32(unsigned long value, FILE *stream);
|