From 125e9226fb4a0552706b06d44dee7a5af212646f Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 16 Feb 2025 13:18:52 +1000 Subject: [PATCH] Fix an error with ma_sound processing. --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 45fcc069..8b2d669e 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -75092,7 +75092,7 @@ static void ma_engine_node_process_pcm_frames__sound(ma_node* pNode, const float ma_sound_set_at_end(pSound, MA_TRUE); /* This will be set to false in ma_sound_start(). */ } - pRunningFramesOut = ma_offset_pcm_frames_ptr_f32(ppFramesOut[0], totalFramesRead, ma_engine_get_channels(ma_sound_get_engine(pSound))); + pRunningFramesOut = ma_offset_pcm_frames_ptr_f32(ppFramesOut[0], totalFramesRead, ma_node_get_output_channels(pNode, 0)); frameCountIn = (ma_uint32)framesJustRead; frameCountOut = framesRemaining;