diff --git a/Components/AY38910/AY38910.cpp b/Components/AY38910/AY38910.cpp index e8c38cda8..bb6240174 100644 --- a/Components/AY38910/AY38910.cpp +++ b/Components/AY38910/AY38910.cpp @@ -223,13 +223,13 @@ template void AY38910::evaluate_output_volume() { // Mix additively, weighting if in stereo. if constexpr (is_stereo) { - int16_t *const volumes = reinterpret_cast(&output_volume_); - volumes[0] = int16_t(( + int16_t *const output_volumes = reinterpret_cast(&output_volume_); + output_volumes[0] = int16_t(( volumes_[volumes[0]] * channel_levels[0] * a_left_ + volumes_[volumes[1]] * channel_levels[1] * b_left_ + volumes_[volumes[2]] * channel_levels[2] * c_left_ ) >> 8); - volumes[1] = int16_t(( + output_volumes[1] = int16_t(( volumes_[volumes[0]] * channel_levels[0] * a_right_ + volumes_[volumes[1]] * channel_levels[1] * b_right_ + volumes_[volumes[2]] * channel_levels[2] * c_right_