mirror of
https://github.com/citra-emu/citra-canary.git
synced 2024-12-28 21:15:33 +00:00
32 lines
635 B
C++
32 lines
635 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 <vector>
|
||
|
#include "core/frontend/mic.h"
|
||
|
|
||
|
namespace AudioCore {
|
||
|
|
||
|
class CubebInput final : public Frontend::Mic::Interface {
|
||
|
public:
|
||
|
CubebInput();
|
||
|
~CubebInput();
|
||
|
|
||
|
void StartSampling(Frontend::Mic::Parameters params) override;
|
||
|
|
||
|
void StopSampling() override;
|
||
|
|
||
|
void AdjustSampleRate(u32 sample_rate) override;
|
||
|
|
||
|
private:
|
||
|
struct Impl;
|
||
|
std::unique_ptr<Impl> impl;
|
||
|
};
|
||
|
|
||
|
std::vector<std::string> ListCubebInputDevices();
|
||
|
|
||
|
} // namespace AudioCore
|