diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-26 11:26:17 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-26 11:46:12 +0200 |
commit | c92a6c7e27cc51e1161425fd2d6e85a63d4b81fb (patch) | |
tree | 34723cd4b44ad4df067d8af4402613997d63d76f /drivers/xaudio2/audio_driver_xaudio2.cpp | |
parent | f7c567e2f56d6e63f4749387a67e5ea4903c4696 (diff) | |
download | redot-engine-c92a6c7e27cc51e1161425fd2d6e85a63d4b81fb.tar.gz |
CI: Update `clang-format` pre-commit hook to 19.1.0
Diffstat (limited to 'drivers/xaudio2/audio_driver_xaudio2.cpp')
-rw-r--r-- | drivers/xaudio2/audio_driver_xaudio2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xaudio2/audio_driver_xaudio2.cpp b/drivers/xaudio2/audio_driver_xaudio2.cpp index 3fe3ea058b..0c2fdb64df 100644 --- a/drivers/xaudio2/audio_driver_xaudio2.cpp +++ b/drivers/xaudio2/audio_driver_xaudio2.cpp @@ -48,9 +48,9 @@ Error AudioDriverXAudio2::init() { int latency = Engine::get_singleton()->get_audio_output_latency(); buffer_size = closest_power_of_2(latency * mix_rate / 1000); - samples_in = memnew_arr(int32_t, buffer_size * channels); + samples_in = memnew_arr(int32_t, size_t(buffer_size) * channels); for (int i = 0; i < AUDIO_BUFFERS; i++) { - samples_out[i] = memnew_arr(int16_t, buffer_size * channels); + samples_out[i] = memnew_arr(int16_t, size_t(buffer_size) * channels); xaudio_buffer[i].AudioBytes = buffer_size * channels * sizeof(int16_t); xaudio_buffer[i].pAudioData = (const BYTE *)(samples_out[i]); xaudio_buffer[i].Flags = 0; |