mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-26 15:55:38 +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;
|
||
|
};
|