Duckstation/src/duckstation/sdl_audio_stream.h
2019-10-11 02:20:10 +10:00

20 lines
382 B
C++

#pragma once
#include "common/audio_stream.h"
#include <cstdint>
class SDLAudioStream final : public AudioStream
{
public:
SDLAudioStream();
~SDLAudioStream();
protected:
bool OpenDevice() override;
void PauseDevice(bool paused) override;
void CloseDevice() override;
static void AudioCallback(void* userdata, uint8_t* stream, int len);
bool m_is_open = false;
};