mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-29 04:35:41 -04:00
23 lines
469 B
C++
23 lines
469 B
C++
#pragma once
|
|
#include "common/audio_stream.h"
|
|
#include <cstdint>
|
|
|
|
class SDLAudioStream final : public AudioStream
|
|
{
|
|
public:
|
|
SDLAudioStream();
|
|
~SDLAudioStream();
|
|
|
|
static std::unique_ptr<SDLAudioStream> Create();
|
|
|
|
protected:
|
|
bool OpenDevice() override;
|
|
void PauseDevice(bool paused) override;
|
|
void CloseDevice() override;
|
|
void BufferAvailable() override;
|
|
|
|
static void AudioCallback(void* userdata, uint8_t* stream, int len);
|
|
|
|
bool m_is_open = false;
|
|
};
|