citra-emu
/
citra-canary
Archived
1
0
Fork 0
This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
citra-canary/src/audio_core/sdl2_sink.h

33 lines
690 B
C
Raw Normal View History

2016-04-27 09:57:29 +00:00
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <cstddef>
#include <memory>
#include "audio_core/sink.h"
namespace AudioCore {
class SDL2Sink final : public Sink {
public:
SDL2Sink();
~SDL2Sink() override;
unsigned int GetNativeSampleRate() const override;
void EnqueueSamples(const s16* samples, size_t sample_count) override;
2016-04-27 09:57:29 +00:00
size_t SamplesInQueue() const override;
std::vector<std::string> GetDeviceList() const override;
2016-04-27 09:57:29 +00:00
private:
struct Impl;
std::unique_ptr<Impl> impl;
std::vector<std::string> device_list;
2016-04-27 09:57:29 +00:00
};
} // namespace AudioCore