citra-mk7/src/audio_core/cubeb_input.h

34 lines
696 B
C++
Raw Normal View History

2019-02-27 23:13:51 +01:00
// Copyright 2018 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include <vector>
#include "core/frontend/mic.h"
namespace AudioCore {
class CubebInput final : public Frontend::Mic::Interface {
public:
CubebInput();
2019-03-05 06:47:24 +01:00
~CubebInput() override;
2019-02-27 23:13:51 +01:00
2019-03-06 19:16:43 +01:00
void StartSampling(const Frontend::Mic::Parameters& params) override;
2019-02-27 23:13:51 +01:00
void StopSampling() override;
void AdjustSampleRate(u32 sample_rate) override;
2019-03-05 06:47:24 +01:00
Frontend::Mic::Samples Read() override;
2019-02-27 23:13:51 +01:00
private:
struct Impl;
std::unique_ptr<Impl> impl;
};
std::vector<std::string> ListCubebInputDevices();
} // namespace AudioCore