mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Add ma_get_stock_device_backends().
This commit many warnings when compiling as C89.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user