AudioCore: Move samples_per_frame and num_sources into hle/common.h

This commit is contained in:
MerryMage 2016-04-24 13:20:13 +01:00
parent 1ecee38468
commit dda9ffe790
3 changed files with 11 additions and 12 deletions

View file

@ -7,18 +7,19 @@
#include <algorithm>
#include <array>
#include "audio_core/audio_core.h"
#include "common/common_types.h"
namespace DSP {
namespace HLE {
constexpr int num_sources = 24;
constexpr int samples_per_frame = 160; ///< Samples per audio frame at native sample rate
/// The final output to the speakers is stereo. Preprocessing output in Source is also stereo.
using StereoFrame16 = std::array<std::array<s16, 2>, AudioCore::samples_per_frame>;
using StereoFrame16 = std::array<std::array<s16, 2>, samples_per_frame>;
/// The DSP is quadraphonic internally.
using QuadFrame32 = std::array<std::array<s32, 4>, AudioCore::samples_per_frame>;
using QuadFrame32 = std::array<std::array<s32, 4>, samples_per_frame>;
/**
* This performs the filter operation defined by FilterT::ProcessSample on the frame in-place.