mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-12 20:45:07 -05:00
17 lines
335 B
C++
17 lines
335 B
C++
#pragma once
|
|
#include "stdint.h"
|
|
|
|
namespace Ship {
|
|
class AudioPlayer {
|
|
|
|
public:
|
|
AudioPlayer() { };
|
|
|
|
virtual bool Init(void) = 0;
|
|
virtual int Buffered(void) = 0;
|
|
virtual int GetDesiredBuffered(void) = 0;
|
|
virtual void Play(const uint8_t* buf, uint32_t len) = 0;
|
|
constexpr int GetSampleRate() const { return 44100; }
|
|
};
|
|
}
|