citra/src/audio_core/cubeb_input.h
2023-05-01 21:17:45 +02:00

35 lines
726 B
C++

// Copyright 2018 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include <string>
#include <vector>
#include "audio_core/input.h"
namespace AudioCore {
class CubebInput final : public Input {
public:
explicit CubebInput(std::string device_id);
~CubebInput() override;
void StartSampling(const InputParameters& params) override;
void StopSampling() override;
void AdjustSampleRate(u32 sample_rate) override;
Samples Read() override;
private:
struct Impl;
std::unique_ptr<Impl> impl;
std::string device_id;
};
std::vector<std::string> ListCubebInputDevices();
} // namespace AudioCore