Shipwright/libultraship/libultraship/SDLAudioPlayer.h
M4xw d24c8453db git subrepo clone https://github.com/HarbourMasters/libultraship.git
subrepo:
  subdir:   "libultraship"
  merged:   "a484cda98"
upstream:
  origin:   "https://github.com/HarbourMasters/libultraship.git"
  branch:   "main"
  commit:   "a484cda98"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2022-03-22 02:52:44 +01:00

19 lines
332 B
C++

#pragma once
#include "AudioPlayer.h"
#include <SDL2/SDL.h>
namespace Ship {
class SDLAudioPlayer : public AudioPlayer {
public:
SDLAudioPlayer() { };
bool Init(void);
int Buffered(void);
int GetDesiredBuffered(void);
void Play(const uint8_t* Buffer, uint32_t BufferLen);
private:
SDL_AudioDeviceID Device;
};
}