BlueGit

ict rusty-teams

Files

rusty-teams / openspec / changes / call-media-hardening / specs / macos-call-audio / spec.md

spec.md

spec.md 2.0 KiB Download Raw

ADDED Requirements

Requirement: Only Low uses the classical noise-suppression track

On the device track, Low SHALL publish the track with classical noise suppression. Auto, Off, and music mode SHALL publish the track without that stage. A failed software-path start MUST NOT restore the classical noise-suppression track for Off or music mode.

Scenario: Music mode does not restore noise suppression

  • WHEN music mode is on and the software path cannot start
  • THEN the restored device track is the track without classical noise suppression

Requirement: A named microphone matches the capture name

A named input on the software path SHALL match a capture device when the names are equal ignoring ASCII case, or when either name contains the other. cpal names can differ from the CoreAudio description. An empty target SHALL NOT match. An unmatched name SHALL fail the capture with an error or the existing notice and MUST NOT silently capture a different microphone.

Scenario: A shorter description matches a longer capture name

  • WHEN the requested name is contained in a longer capture-device name
  • THEN that capture device is selected

Requirement: Computer sound falls back to the default microphone

While sharing computer sound, a failed named microphone SHALL fall back to the default microphone and show that notice. Silence is used only when the default microphone also fails.

Scenario: The default microphone opens

  • WHEN the named microphone fails and the default microphone starts
  • THEN the call uses the default microphone and shows the fallback notice

Requirement: A device switch counts when the index is selected

Selecting an input or output SHALL be reported as applied when the device index is selected, even if recording or playout does not start on that attempt. A single failed start MUST NOT leave the previous device marked as current.

Scenario: Start fails once

  • WHEN the device index is accepted and recording or playout does not start
  • THEN the selection is still reported as applied
Source
1## ADDED Requirements
2
3### Requirement: Only Low uses the classical noise-suppression track
4
5On the device track, Low SHALL publish the track with classical noise suppression. Auto, Off, and music mode SHALL publish the track without that stage. A failed software-path start MUST NOT restore the classical noise-suppression track for Off or music mode.
6
7#### Scenario: Music mode does not restore noise suppression
8
9- **WHEN** music mode is on and the software path cannot start
10- **THEN** the restored device track is the track without classical noise suppression
11
12### Requirement: A named microphone matches the capture name
13
14A named input on the software path SHALL match a capture device when the names are equal ignoring ASCII case, or when either name contains the other. cpal names can differ from the CoreAudio description. An empty target SHALL NOT match. An unmatched name SHALL fail the capture with an error or the existing notice and MUST NOT silently capture a different microphone.
15
16#### Scenario: A shorter description matches a longer capture name
17
18- **WHEN** the requested name is contained in a longer capture-device name
19- **THEN** that capture device is selected
20
21### Requirement: Computer sound falls back to the default microphone
22
23While sharing computer sound, a failed named microphone SHALL fall back to the default microphone and show that notice. Silence is used only when the default microphone also fails.
24
25#### Scenario: The default microphone opens
26
27- **WHEN** the named microphone fails and the default microphone starts
28- **THEN** the call uses the default microphone and shows the fallback notice
29
30### Requirement: A device switch counts when the index is selected
31
32Selecting an input or output SHALL be reported as applied when the device index is selected, even if recording or playout does not start on that attempt. A single failed start MUST NOT leave the previous device marked as current.
33
34#### Scenario: Start fails once
35
36- **WHEN** the device index is accepted and recording or playout does not start
37- **THEN** the selection is still reported as applied