summaryrefslogtreecommitdiff
path: root/servers/audio/audio_driver_dummy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'servers/audio/audio_driver_dummy.cpp')
-rw-r--r--servers/audio/audio_driver_dummy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/audio/audio_driver_dummy.cpp b/servers/audio/audio_driver_dummy.cpp
index a28dcb1015..47799dce96 100644
--- a/servers/audio/audio_driver_dummy.cpp
+++ b/servers/audio/audio_driver_dummy.cpp
@@ -46,7 +46,7 @@ Error AudioDriverDummy::init() {
int latency = GLOBAL_GET("audio/driver/output_latency");
buffer_frames = closest_power_of_2(latency * mix_rate / 1000);
- samples_in = memnew_arr(int32_t, buffer_frames * channels);
+ samples_in = memnew_arr(int32_t, (size_t)buffer_frames * channels);
thread.start(AudioDriverDummy::thread_func, this);