mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-02-14 19:54:37 +01:00
Also renames "AudioThread" to "AudioBackend". The new name is more descriptive of what the class really is responsible for, since the backends are not responsible for managing the audio thread. NOTE: Right now only XAudio2 is supported
24 lines
459 B
C++
24 lines
459 B
C++
#pragma once
|
|
|
|
#ifdef HAVE_PULSE
|
|
#include <pulse/simple.h>
|
|
#include "Emu/Audio/AudioThread.h"
|
|
|
|
class PulseThread : public AudioBackend
|
|
{
|
|
public:
|
|
PulseThread();
|
|
virtual ~PulseThread() override;
|
|
|
|
virtual void Play() override;
|
|
virtual void Open(const void* src, int size) override;
|
|
virtual void Close() override;
|
|
virtual void Stop() override;
|
|
virtual void AddData(const void* src, int size) override;
|
|
|
|
private:
|
|
pa_simple *connection = nullptr;
|
|
};
|
|
|
|
#endif
|