diff options
| author | 2021-06-26 23:04:40 +0100 | |
|---|---|---|
| committer | 2021-07-01 06:01:01 +0100 | |
| commit | b455043e45737345fe73d118947db1684bd248ea (patch) | |
| tree | c05414e81eff4b012bd1b33076fb60da16aace54 /src/audio_core/info_updater.cpp | |
| parent | Decouple audio processing and run at variable rate (diff) | |
| download | yuzu-b455043e45737345fe73d118947db1684bd248ea.tar.gz yuzu-b455043e45737345fe73d118947db1684bd248ea.tar.xz yuzu-b455043e45737345fe73d118947db1684bd248ea.zip | |
Fix XC2/VOEZ crashing, add audio looping and a few misc fixes
Diffstat (limited to 'src/audio_core/info_updater.cpp')
| -rw-r--r-- | src/audio_core/info_updater.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/audio_core/info_updater.cpp b/src/audio_core/info_updater.cpp index 4a5b1b4ab..9b4ca1851 100644 --- a/src/audio_core/info_updater.cpp +++ b/src/audio_core/info_updater.cpp | |||
| @@ -189,9 +189,6 @@ bool InfoUpdater::UpdateVoices(VoiceContext& voice_context, | |||
| 189 | if (voice_in_params.is_new) { | 189 | if (voice_in_params.is_new) { |
| 190 | // Default our values for our voice | 190 | // Default our values for our voice |
| 191 | voice_info.Initialize(); | 191 | voice_info.Initialize(); |
| 192 | if (channel_count == 0 || channel_count > AudioCommon::MAX_CHANNEL_COUNT) { | ||
| 193 | continue; | ||
| 194 | } | ||
| 195 | 192 | ||
| 196 | // Zero out our voice states | 193 | // Zero out our voice states |
| 197 | for (std::size_t channel = 0; channel < channel_count; channel++) { | 194 | for (std::size_t channel = 0; channel < channel_count; channel++) { |