Fix compilation with unity build

This commit is contained in:
SirLynix
2022-09-07 19:28:41 +02:00
parent 5cb50928f7
commit 72d908817d
3 changed files with 6 additions and 6 deletions

View File

@@ -117,10 +117,10 @@ namespace Nz
return sampleCount - remainingBytes / sizeof(Int16);
}
constexpr auto s_supportedExtensions = frozen::make_unordered_set<frozen::string>({ ".oga", ".ogg", ".ogm", ".ogv", ".ogx", ".opus", ".spx" });
bool IsVorbisSupported(std::string_view extension)
{
constexpr auto s_supportedExtensions = frozen::make_unordered_set<frozen::string>({ ".oga", ".ogg", ".ogm", ".ogv", ".ogx", ".opus", ".spx" });
return s_supportedExtensions.find(extension) != s_supportedExtensions.end();
}