mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-28 16:45:41 +00:00
20 lines
382 B
C++
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;
|
|
};
|