2020-04-19 23:04:05 +02:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2020-03-27 20:36:02 +01:00
|
|
|
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
|
|
|
|
|
2020-03-26 15:20:08 +01:00
|
|
|
#include "memory_pool.h"
|
2020-01-24 23:04:16 +01:00
|
|
|
|
2020-02-17 20:11:59 +01:00
|
|
|
namespace skyline::service::audio::IAudioRenderer {
|
2020-01-24 23:04:16 +01:00
|
|
|
void MemoryPool::ProcessInput(const MemoryPoolIn &input) {
|
|
|
|
if (input.state == MemoryPoolState::RequestAttach)
|
|
|
|
output.state = MemoryPoolState::Attached;
|
|
|
|
else if (input.state == MemoryPoolState::RequestDetach)
|
|
|
|
output.state = MemoryPoolState::Detached;
|
|
|
|
}
|
|
|
|
}
|