Merge pull request #86584 from MJacred/fix/audio_server_set_playbyck_stream

Fix `AudioServer::start_playback_stream` does not iterate through given `p_bus_volumes`
This commit is contained in:
Rémi Verschelde 2024-01-02 18:05:44 +01:00
commit ad10b0717d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1147,6 +1147,7 @@ void AudioServer::start_playback_stream(Ref<AudioStreamPlayback> p_playback, Has
for (int channel_idx = 0; channel_idx < MAX_CHANNELS_PER_BUS; channel_idx++) {
new_bus_details->volume[idx][channel_idx] = pair.value[channel_idx];
}
idx++;
}
playback_node->bus_details = new_bus_details;
playback_node->prev_bus_details = new AudioStreamPlaybackBusDetails();