Add ma_get_stock_device_backends().

This commit many warnings when compiling as C89.
This commit is contained in:
David Reid
2025-08-21 07:27:42 +10:00
parent c3132cb703
commit f6453a1418
2 changed files with 53 additions and 37 deletions
+4 -2
View File
@@ -258,10 +258,12 @@ ma_bool32 try_parse_noise(const char* arg, ma_noise_type* pNoiseType)
void print_enabled_backends(void)
{
const ma_device_backend_config pStockBackends[] = MA_STOCK_DEVICE_BACKENDS;
ma_uint32 stockBackendCount = ma_countof(pStockBackends);
ma_device_backend_config pStockBackends[MA_MAX_STOCK_DEVICE_BACKENDS];
ma_uint32 stockBackendCount;
ma_uint32 iEnabledStockBackend;
stockBackendCount = ma_get_stock_device_backends(pStockBackends, ma_countof(pStockBackends));
printf("Enabled Backends:\n");
for (iEnabledStockBackend = 0; iEnabledStockBackend < stockBackendCount; iEnabledStockBackend += 1) {