diff options
author | Chloe Marcec <dmarcecguzman@gmail.com> | 2020-11-17 04:14:29 +0100 |
---|---|---|
committer | Chloe Marcec <dmarcecguzman@gmail.com> | 2020-11-17 04:14:29 +0100 |
commit | 9a4beac95a0f88ec312a28d06da8270aa58736e3 (patch) | |
tree | f3cbfbea9881288a32c52181ad16201f2958946a /src/audio_core/mix_context.h | |
parent | Merge pull request #4895 from Morph1984/cave-story-plus-applet-fix (diff) | |
download | yuzu-9a4beac95a0f88ec312a28d06da8270aa58736e3.tar yuzu-9a4beac95a0f88ec312a28d06da8270aa58736e3.tar.gz yuzu-9a4beac95a0f88ec312a28d06da8270aa58736e3.tar.bz2 yuzu-9a4beac95a0f88ec312a28d06da8270aa58736e3.tar.lz yuzu-9a4beac95a0f88ec312a28d06da8270aa58736e3.tar.xz yuzu-9a4beac95a0f88ec312a28d06da8270aa58736e3.tar.zst yuzu-9a4beac95a0f88ec312a28d06da8270aa58736e3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/mix_context.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/audio_core/mix_context.h b/src/audio_core/mix_context.h index 6a588eeb4..68bc673c6 100644 --- a/src/audio_core/mix_context.h +++ b/src/audio_core/mix_context.h @@ -62,17 +62,17 @@ public: ServerMixInfo(); ~ServerMixInfo(); - const ServerMixInfo::InParams& GetInParams() const; - ServerMixInfo::InParams& GetInParams(); + [[nodiscard]] const ServerMixInfo::InParams& GetInParams() const; + [[nodiscard]] ServerMixInfo::InParams& GetInParams(); bool Update(EdgeMatrix& edge_matrix, const MixInfo::InParams& mix_in, BehaviorInfo& behavior_info, SplitterContext& splitter_context, EffectContext& effect_context); - bool HasAnyConnection() const; + [[nodiscard]] bool HasAnyConnection() const; void Cleanup(); void SetEffectCount(std::size_t count); void ResetEffectProcessingOrder(); - s32 GetEffectOrder(std::size_t i) const; + [[nodiscard]] s32 GetEffectOrder(std::size_t i) const; private: std::vector<s32> effect_processing_order; @@ -91,15 +91,15 @@ public: void SortInfo(); bool TsortInfo(SplitterContext& splitter_context); - std::size_t GetCount() const; - ServerMixInfo& GetInfo(std::size_t i); - const ServerMixInfo& GetInfo(std::size_t i) const; - ServerMixInfo& GetSortedInfo(std::size_t i); - const ServerMixInfo& GetSortedInfo(std::size_t i) const; - ServerMixInfo& GetFinalMixInfo(); - const ServerMixInfo& GetFinalMixInfo() const; - EdgeMatrix& GetEdgeMatrix(); - const EdgeMatrix& GetEdgeMatrix() const; + [[nodiscard]] std::size_t GetCount() const; + [[nodiscard]] ServerMixInfo& GetInfo(std::size_t i); + [[nodiscard]] const ServerMixInfo& GetInfo(std::size_t i) const; + [[nodiscard]] ServerMixInfo& GetSortedInfo(std::size_t i); + [[nodiscard]] const ServerMixInfo& GetSortedInfo(std::size_t i) const; + [[nodiscard]] ServerMixInfo& GetFinalMixInfo(); + [[nodiscard]] const ServerMixInfo& GetFinalMixInfo() const; + [[nodiscard]] EdgeMatrix& GetEdgeMatrix(); + [[nodiscard]] const EdgeMatrix& GetEdgeMatrix() const; private: void CalcMixBufferOffset(); |