Skip to content

libretro #24

@konsumer

Description

@konsumer

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 libretro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions