glue.cpp 594 B

123456789101112131415161718192021
  1. #include "soloud.h"
  2. namespace SoLoud {
  3. result sdl2static_init(SoLoud::Soloud *aSoloud, unsigned int aFlags = Soloud::CLIP_ROUNDOFF, unsigned int aSamplerate = 44100, unsigned int aBuffer = 2048, unsigned int aChannels = 2);
  4. result miniaudio_init(SoLoud::Soloud* aSoloud, unsigned int aFlags = Soloud::CLIP_ROUNDOFF, unsigned int aSamplerate = 44100, unsigned int aBuffer = 2048, unsigned int aChannels = 2)
  5. {
  6. return NOT_IMPLEMENTED;
  7. }
  8. }
  9. extern "C" {
  10. // linkage requires us to have a call to sdl2static_init
  11. void sdl_stub() {
  12. SoLoud::sdl2static_init(0, 0, 0, 0);
  13. }
  14. }