-
Notifications
You must be signed in to change notification settings - Fork 36
libretro #24
Copy link
Copy link
Open
Description
I am thinking about making a custom miniaudio-backend for libretro, and adding it to raudio init, so you can use raudio when you are making an emulator core. Is there interest in a PR? I think without libretro, it should have no impact (it all gets compiled away.) Essentially, if you include libretro.h (the primary way people make cores) it defines LIBRETRO_H__, so I think I can test for that, and only add libretro backend if it's available. user-code would look something like this:
#define RAUDIO_STANDALONE
#define SUPPORT_MODULE_RAUDIO
#define SUPPORT_FILEFORMAT_WAV
#define SUPPORT_FILEFORMAT_OGG
#define SUPPORT_FILEFORMAT_MP3
#define SUPPORT_FILEFORMAT_QOA
#define SUPPORT_FILEFORMAT_FLAC
#define SUPPORT_FILEFORMAT_XM
#define SUPPORT_FILEFORMAT_MOD
#include "libretro.h"
#include "raudio.c"
// now you can do raudio stuff, and it will output to libretroReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels