Implement the new OpenSubsonic API transcoding extension fixes #787

This commit is contained in:
emeric
2025-12-03 20:53:11 +01:00
parent 954b873f2b
commit 7feecb2027
30 changed files with 2855 additions and 163 deletions
+13
View File
@@ -19,6 +19,7 @@
#pragma once
#include <functional>
#include <optional>
#include <string>
#include <string_view>
@@ -49,3 +50,15 @@ namespace lms::core::stringUtils
std::optional<UUID>
readAs(std::string_view str);
}
namespace std
{
template<>
struct hash<lms::core::UUID>
{
size_t operator()(const lms::core::UUID& str) const
{
return hash<std::string_view>{}(str.getAsString());
}
};
} // namespace std
@@ -49,4 +49,6 @@ namespace lms::core::media
};
core::LiteralString codecTypeToString(CodecType type);
} // namespace lms::core::media
bool isCodecLossless(CodecType type);
} // namespace lms::core::media