// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: MPL-2.0 #pragma once #include #include #include #include namespace AudioCore::AudioRenderer { class UpsamplerManager; /** * Manages information needed to upsample a mix buffer. */ struct UpsamplerInfo { /// States used by the AudioRenderer across calls. std::array states{}; /// Pointer to the manager UpsamplerManager* manager{}; /// Pointer to the samples to be upsampled CpuAddr samples_pos{}; /// Target number of samples to upsample to u32 sample_count{}; /// Number of channels to upsample u32 input_count{}; /// Is this upsampler enabled? bool enabled{}; /// Mix buffer indexes to be upsampled std::array inputs{}; }; } // namespace AudioCore::AudioRenderer