Initial Mic setup
This commit is contained in:
parent
ad1cfc8d50
commit
7fccc995ce
15 changed files with 528 additions and 59 deletions
23
src/core/frontend/mic.cpp
Normal file
23
src/core/frontend/mic.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
// Copyright 2018 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "core/frontend/mic.h"
|
||||
#include "core/hle/service/mic_u.h"
|
||||
|
||||
namespace Frontend {
|
||||
|
||||
static std::shared_ptr<Mic::Interface> current_mic;
|
||||
|
||||
void RegisterMic(std::shared_ptr<Mic::Interface> mic) {
|
||||
current_mic = mic;
|
||||
}
|
||||
|
||||
std::shared_ptr<Mic::Interface> GetCurrentMic() {
|
||||
if (!current_mic) {
|
||||
current_mic = std::make_shared<Mic::NullMic>();
|
||||
}
|
||||
return current_mic;
|
||||
}
|
||||
|
||||
} // namespace Frontend
|
Loading…
Add table
Add a link
Reference in a new issue