mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Have ma_node_graph_init() fail if a config is not specified.
The config is required for the channel count.
This commit is contained in:
@@ -74813,6 +74813,11 @@ MA_API ma_result ma_node_graph_init(const ma_node_graph_config* pConfig, const m
|
|||||||
}
|
}
|
||||||
|
|
||||||
MA_ZERO_OBJECT(pNodeGraph);
|
MA_ZERO_OBJECT(pNodeGraph);
|
||||||
|
|
||||||
|
if (pConfig == NULL) {
|
||||||
|
return MA_INVALID_ARGS;
|
||||||
|
}
|
||||||
|
|
||||||
pNodeGraph->processingSizeInFrames = pConfig->processingSizeInFrames;
|
pNodeGraph->processingSizeInFrames = pConfig->processingSizeInFrames;
|
||||||
|
|
||||||
/* Data source. */
|
/* Data source. */
|
||||||
|
|||||||
Reference in New Issue
Block a user