Add the 4.0 Surround and 4.0 Quad speaker layouts to the kernel
This commit is contained in:
1 parent
7b83358eb5
commit
d2d6ac0e6f
7 files changed
+126
-9
No files matched your search
@@ -8,7 +8,7 @@
|
||||
|
||||
namespace joc::speaker {
|
||||
|
||||
inline constexpr int kLayoutCount = 10;
|
||||
inline constexpr int kLayoutCount = 12;
|
||||
|
||||
struct LayoutInfo {
|
||||
const char* name = "";
|
||||
@@ -17,10 +17,13 @@ struct LayoutInfo {
|
||||
std::uint32_t channel_count = 0;
|
||||
};
|
||||
|
||||
// All ten layouts in the reference's order (2.0, 3.1, 5.1, 7.1, 5.1.2, 5.1.4,
|
||||
// All twelve layouts in the reference's order (2.0, 3.1, 4.0 Surround, 4.0 Quad,
|
||||
// 5.1, 7.1, 5.1.2, 5.1.4, 7.1.2, 7.1.4, 9.1.4, 9.1.6).
|
||||
bool layout_at(int index, LayoutInfo* out);
|
||||
|
||||
// False when the name is unknown (case-sensitive, exactly as the reference CLI).
|
||||
// False when the name is unknown (case-sensitive, as the reference CLI). The
|
||||
// legacy spelling "4.0" resolves to 4.0 Surround, which is what that name meant
|
||||
// before the two 4.0 layouts were told apart.
|
||||
bool layout_by_name(const char* name, LayoutInfo* out);
|
||||
|
||||
bool layout_by_bitfield(std::uint32_t bitfield, LayoutInfo* out);
|
||||
|
||||
Reference in new issue
Block a user