diff options
author | Lioncash <mathew1800@gmail.com> | 2020-11-25 21:21:03 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-12-03 06:54:31 +0100 |
commit | 1ea6bdef058a789e2771511f741bffcca73c3525 (patch) | |
tree | 6bcfaa3649add0bb73ff5bbcf982197439c896d1 /src/audio_core/memory_pool.cpp | |
parent | Merge pull request #4959 from Morph1984/emulated-controller-styleset (diff) | |
download | yuzu-1ea6bdef058a789e2771511f741bffcca73c3525.tar yuzu-1ea6bdef058a789e2771511f741bffcca73c3525.tar.gz yuzu-1ea6bdef058a789e2771511f741bffcca73c3525.tar.bz2 yuzu-1ea6bdef058a789e2771511f741bffcca73c3525.tar.lz yuzu-1ea6bdef058a789e2771511f741bffcca73c3525.tar.xz yuzu-1ea6bdef058a789e2771511f741bffcca73c3525.tar.zst yuzu-1ea6bdef058a789e2771511f741bffcca73c3525.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/memory_pool.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/audio_core/memory_pool.cpp b/src/audio_core/memory_pool.cpp index 5a3453063..6b6908d26 100644 --- a/src/audio_core/memory_pool.cpp +++ b/src/audio_core/memory_pool.cpp @@ -10,11 +10,10 @@ namespace AudioCore { ServerMemoryPoolInfo::ServerMemoryPoolInfo() = default; ServerMemoryPoolInfo::~ServerMemoryPoolInfo() = default; -bool ServerMemoryPoolInfo::Update(const ServerMemoryPoolInfo::InParams& in_params, - ServerMemoryPoolInfo::OutParams& out_params) { + +bool ServerMemoryPoolInfo::Update(const InParams& in_params, OutParams& out_params) { // Our state does not need to be changed - if (in_params.state != ServerMemoryPoolInfo::State::RequestAttach && - in_params.state != ServerMemoryPoolInfo::State::RequestDetach) { + if (in_params.state != State::RequestAttach && in_params.state != State::RequestDetach) { return true; } @@ -32,11 +31,11 @@ bool ServerMemoryPoolInfo::Update(const ServerMemoryPoolInfo::InParams& in_param return false; } - if (in_params.state == ServerMemoryPoolInfo::State::RequestAttach) { + if (in_params.state == State::RequestAttach) { cpu_address = in_params.address; size = in_params.size; used = true; - out_params.state = ServerMemoryPoolInfo::State::Attached; + out_params.state = State::Attached; } else { // Unexpected address if (cpu_address != in_params.address) { @@ -54,7 +53,7 @@ bool ServerMemoryPoolInfo::Update(const ServerMemoryPoolInfo::InParams& in_param cpu_address = 0; size = 0; used = false; - out_params.state = ServerMemoryPoolInfo::State::Detached; + out_params.state = State::Detached; } return true; } |