summaryrefslogtreecommitdiffstats
path: root/src/audio_core/hle/common.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-04-28 15:47:08 +0200
committerbunnei <bunneidev@gmail.com>2016-04-28 15:47:08 +0200
commitfda578e19d236d2c2f138c126f926e638ca3a818 (patch)
tree3c502f28221b915766c0503e534eb99f62752cf2 /src/audio_core/hle/common.h
parentMerge pull request #1722 from MerryMage/soundtouch (diff)
parentAudioCore: Move samples_per_frame and num_sources into hle/common.h (diff)
downloadyuzu-fda578e19d236d2c2f138c126f926e638ca3a818.tar
yuzu-fda578e19d236d2c2f138c126f926e638ca3a818.tar.gz
yuzu-fda578e19d236d2c2f138c126f926e638ca3a818.tar.bz2
yuzu-fda578e19d236d2c2f138c126f926e638ca3a818.tar.lz
yuzu-fda578e19d236d2c2f138c126f926e638ca3a818.tar.xz
yuzu-fda578e19d236d2c2f138c126f926e638ca3a818.tar.zst
yuzu-fda578e19d236d2c2f138c126f926e638ca3a818.zip
Diffstat (limited to 'src/audio_core/hle/common.h')
-rw-r--r--src/audio_core/hle/common.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/audio_core/hle/common.h b/src/audio_core/hle/common.h
index 37d441eb2..7910f42ae 100644
--- a/src/audio_core/hle/common.h
+++ b/src/audio_core/hle/common.h
@@ -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.