Don't include Unknown as a supported format to the null backend.

This commit is contained in:
David Reid
2018-04-22 11:52:31 +10:00
parent 8e38deb7cc
commit 9c076941ed
+2 -2
View File
@@ -3934,9 +3934,9 @@ mal_result mal_context_get_device_info__null(mal_context* pContext, mal_device_t
}
// Support everything on the null backend.
pDeviceInfo->formatCount = mal_format_count;
pDeviceInfo->formatCount = mal_format_count - 1; // Minus one because we don't want to include mal_format_unknown.
for (mal_uint32 iFormat = 0; iFormat < pDeviceInfo->formatCount; ++iFormat) {
pDeviceInfo->formats[iFormat] = (mal_format)iFormat;
pDeviceInfo->formats[iFormat] = (mal_format)(iFormat + 1); // +1 to skip over mal_format_unknown.
}
pDeviceInfo->minChannels = 1;