feat(audio): add S/PDIF (iec958:) devices to bit-perfect category
Digital outputs like S/PDIF transmit audio as-is without DA/AD conversion, making them bit-perfect by nature. Now iec958: devices get the BP badge. Updated group label to "Bit-perfect (Hardware / Digital)" to reflect both direct hardware access (hw:) and digital outputs (iec958:).
This commit is contained in:
1 parent
5b03af41bc
commit
fe7816f6c6
1 file changed
+4
-2
@@ -62,7 +62,9 @@
|
|||||||
defaults.push(device);
|
defaults.push(device);
|
||||||
} else if (device.id === 'default' || device.isDefault) {
|
} else if (device.id === 'default' || device.isDefault) {
|
||||||
defaults.push(device);
|
defaults.push(device);
|
||||||
} else if (device.id.startsWith('hw:')) {
|
} else if (device.id.startsWith('hw:') || device.id.startsWith('iec958:')) {
|
||||||
|
// hw: = direct hardware access, iec958: = S/PDIF digital output
|
||||||
|
// Both are bit-perfect capable
|
||||||
bitPerfect.push(device);
|
bitPerfect.push(device);
|
||||||
} else if (device.id.startsWith('plughw:')) {
|
} else if (device.id.startsWith('plughw:')) {
|
||||||
pluginHw.push(device);
|
pluginHw.push(device);
|
||||||
@@ -72,7 +74,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (defaults.length > 0) groups.push({ key: 'defaults', label: 'Defaults', devices: defaults });
|
if (defaults.length > 0) groups.push({ key: 'defaults', label: 'Defaults', devices: defaults });
|
||||||
if (bitPerfect.length > 0) groups.push({ key: 'bitperfect', label: 'Bit-perfect (Auto-detected)', devices: bitPerfect });
|
if (bitPerfect.length > 0) groups.push({ key: 'bitperfect', label: 'Bit-perfect (Hardware / Digital)', devices: bitPerfect });
|
||||||
if (pluginHw.length > 0) groups.push({ key: 'pluginhw', label: 'Plugin Hardware', devices: pluginHw });
|
if (pluginHw.length > 0) groups.push({ key: 'pluginhw', label: 'Plugin Hardware', devices: pluginHw });
|
||||||
if (others.length > 0) groups.push({ key: 'others', label: 'Other Outputs', devices: others });
|
if (others.length > 0) groups.push({ key: 'others', label: 'Other Outputs', devices: others });
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user