diff --git a/CHANGES.md b/CHANGES.md index 9eaef119..2113482a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,7 @@ v0.11.19 - TBD ===================== * Fix a bug where `ma_decoder_init_file()` can incorrectly return successfully. +* Fix a crash when using a node with more than 2 outputs. * Remove the use of some deprecated functions. diff --git a/miniaudio.h b/miniaudio.h index 65893865..e3f9d0b2 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -72041,7 +72041,7 @@ MA_API ma_result ma_node_init_preallocated(ma_node_graph* pNodeGraph, const ma_n } if (heapLayout.outputBusOffset != MA_SIZE_MAX) { - pNodeBase->pOutputBuses = (ma_node_output_bus*)ma_offset_ptr(pHeap, heapLayout.inputBusOffset); + pNodeBase->pOutputBuses = (ma_node_output_bus*)ma_offset_ptr(pHeap, heapLayout.outputBusOffset); } else { pNodeBase->pOutputBuses = pNodeBase->_outputBuses; }