From 8bf43883cab478237a62983b01a49e8730fc2507 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 29 Sep 2025 14:13:56 -0700 Subject: [PATCH] Updated sound.cpp --- src/audio-cpp/sound.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/audio-cpp/sound.cpp b/src/audio-cpp/sound.cpp index c3ff58a..ceb9371 100644 --- a/src/audio-cpp/sound.cpp +++ b/src/audio-cpp/sound.cpp @@ -2,16 +2,17 @@ #include namespace audio { + void data_callback(ma_device* p_device, - void* p_output, - const void* p_input, + /*NOLINT*/void* p_output, + /*NOLINT*/ const void* p_input, ma_uint32 p_frame_count) { - ma_decoder* pDecoder = (ma_decoder*)p_device->pUserData; - if (pDecoder == NULL) { + ma_decoder* decoder = (ma_decoder*)p_device->pUserData; + if (decoder == nullptr) { return; } - ma_decoder_read_pcm_frames(pDecoder, p_output, p_frame_count, NULL); + ma_decoder_read_pcm_frames(decoder, p_output, p_frame_count, NULL); (void)p_input; }