mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Update device IO test.
This commit is contained in:
@@ -248,24 +248,16 @@ ma_result print_device_info(ma_context* pContext, ma_device_type deviceType, con
|
|||||||
detailedDeviceInfo = *pDeviceInfo;
|
detailedDeviceInfo = *pDeviceInfo;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* TODO: Update this to print the new device info structure. */
|
|
||||||
#if 0
|
|
||||||
{
|
{
|
||||||
ma_uint32 iFormat;
|
ma_uint32 iFormat;
|
||||||
|
|
||||||
printf("%s\n", pDeviceInfo->name);
|
printf("%s\n", pDeviceInfo->name);
|
||||||
printf(" Default: %s\n", (detailedDeviceInfo.isDefault) ? "Yes" : "No");
|
printf(" Default: %s\n", (detailedDeviceInfo.isDefault) ? "Yes" : "No");
|
||||||
printf(" Min Channels: %d\n", detailedDeviceInfo.minChannels);
|
printf(" Format Count: %d\n", detailedDeviceInfo.nativeDataFormatCount);
|
||||||
printf(" Max Channels: %d\n", detailedDeviceInfo.maxChannels);
|
for (iFormat = 0; iFormat < detailedDeviceInfo.nativeDataFormatCount; ++iFormat) {
|
||||||
printf(" Min Sample Rate: %d\n", detailedDeviceInfo.minSampleRate);
|
printf(" %s, %d, %d\n", ma_get_format_name(detailedDeviceInfo.nativeDataFormats[iFormat].format), detailedDeviceInfo.nativeDataFormats[iFormat].channels, detailedDeviceInfo.nativeDataFormats[iFormat].sampleRate);
|
||||||
printf(" Max Sample Rate: %d\n", detailedDeviceInfo.maxSampleRate);
|
|
||||||
printf(" Format Count: %d\n", detailedDeviceInfo.formatCount);
|
|
||||||
for (iFormat = 0; iFormat < detailedDeviceInfo.formatCount; ++iFormat) {
|
|
||||||
printf(" %s\n", ma_get_format_name(detailedDeviceInfo.formats[iFormat]));
|
|
||||||
}
|
}
|
||||||
printf("\n");
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return MA_SUCCESS;
|
return MA_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user