mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-08-13 17:03:47 -04:00
19 lines
332 B
C
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;
|
||
|
};
|
||
|
}
|