diff options
Diffstat (limited to 'src/audio_core/mix_context.h')
| -rw-r--r-- | src/audio_core/mix_context.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/audio_core/mix_context.h b/src/audio_core/mix_context.h index 381566699..6a588eeb4 100644 --- a/src/audio_core/mix_context.h +++ b/src/audio_core/mix_context.h | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | namespace AudioCore { | 14 | namespace AudioCore { |
| 15 | class BehaviorInfo; | 15 | class BehaviorInfo; |
| 16 | class EffectContext; | ||
| 16 | 17 | ||
| 17 | class MixInfo { | 18 | class MixInfo { |
| 18 | public: | 19 | public: |
| @@ -65,11 +66,16 @@ public: | |||
| 65 | ServerMixInfo::InParams& GetInParams(); | 66 | ServerMixInfo::InParams& GetInParams(); |
| 66 | 67 | ||
| 67 | bool Update(EdgeMatrix& edge_matrix, const MixInfo::InParams& mix_in, | 68 | bool Update(EdgeMatrix& edge_matrix, const MixInfo::InParams& mix_in, |
| 68 | BehaviorInfo& behavior_info, SplitterContext& splitter_context); | 69 | BehaviorInfo& behavior_info, SplitterContext& splitter_context, |
| 70 | EffectContext& effect_context); | ||
| 69 | bool HasAnyConnection() const; | 71 | bool HasAnyConnection() const; |
| 70 | void Cleanup(); | 72 | void Cleanup(); |
| 73 | void SetEffectCount(std::size_t count); | ||
| 74 | void ResetEffectProcessingOrder(); | ||
| 75 | s32 GetEffectOrder(std::size_t i) const; | ||
| 71 | 76 | ||
| 72 | private: | 77 | private: |
| 78 | std::vector<s32> effect_processing_order; | ||
| 73 | InParams in_params{}; | 79 | InParams in_params{}; |
| 74 | bool UpdateConnection(EdgeMatrix& edge_matrix, const MixInfo::InParams& mix_in, | 80 | bool UpdateConnection(EdgeMatrix& edge_matrix, const MixInfo::InParams& mix_in, |
| 75 | SplitterContext& splitter_context); | 81 | SplitterContext& splitter_context); |
| @@ -80,7 +86,8 @@ public: | |||
| 80 | MixContext(); | 86 | MixContext(); |
| 81 | ~MixContext(); | 87 | ~MixContext(); |
| 82 | 88 | ||
| 83 | void Initialize(const BehaviorInfo& behavior_info, std::size_t mix_count); | 89 | void Initialize(const BehaviorInfo& behavior_info, std::size_t mix_count, |
| 90 | std::size_t effect_count); | ||
| 84 | void SortInfo(); | 91 | void SortInfo(); |
| 85 | bool TsortInfo(SplitterContext& splitter_context); | 92 | bool TsortInfo(SplitterContext& splitter_context); |
| 86 | 93 | ||