From f0d36f5a00c34f25389ee81733d4886ff099a818 Mon Sep 17 00:00:00 2001 From: Joseph Walton-Rivers <joseph@walton-rivers.uk> Date: Sat, 20 Aug 2022 12:01:03 +0100 Subject: [PATCH] fix audio-linter warning --- include/fggl/audio/audio.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/fggl/audio/audio.hpp b/include/fggl/audio/audio.hpp index 12abe71..e0d05be 100644 --- a/include/fggl/audio/audio.hpp +++ b/include/fggl/audio/audio.hpp @@ -27,10 +27,10 @@ namespace fggl::audio { * If the sampleCount is -1, the clip is invalid. */ struct AudioClip { - int channels; - int sampleRate; - int sampleCount; - short* data; + int channels = 0; + int sampleRate = 0; + int sampleCount = -1; + short* data = nullptr; }; constexpr modules::ModuleService SERVICE_AUDIO_PLAYBACK = modules::make_service("fggl::audio::AudioService"); -- GitLab