Files
fmini-1/tests
Claude 63c9945e20 FMini-1 USB audio out, step 1: the playback interface's descriptors
FELUCCA_UAC_OUT (on by default without the console) adds a class 1.0
playback stream after the audio input and the MIDI interface:

- interface a+3, alt 0 (no bandwidth) and alt 1 (the stream);
- endpoint 3 OUT, isochronous, adaptive, 1 ms, wMaxPacketSize of the
  input stream, with its class-specific endpoint descriptor;
- a second USB streaming input terminal (3, 2 ch L R) and a speaker
  output terminal (4, from 3);
- the AC header lists three interfaces (streams first, MIDI last with
  FELUCCA_UAC_AS_FIRST, the order macOS' AppleUSBAudio parses);
- bcdDevice + 0.40 so hosts do not reuse what they learnt about the
  input-only device.

No data is received yet: SET_INTERFACE / GET_INTERFACE accept the
playback interface's alt settings (alt 1 is acknowledged, the endpoint
is not configured), so Windows can list the device under playback
without a stall. Reception and mixing follow in steps 2 and 3.

FELUCCA_UAC_OUT needs FELUCCA_UAC and no FELUCCA_CDC (EP3 is the
console's bulk pipe); usb.c stops the build otherwise.

Tests: usb_desc_test.c learns T_OUT (interfaces, endpoints, bcdDevice,
collection order, the playback terminals, the alt settings and the
endpoint); run_tests.sh runs it with 48 kHz and 44.1 kHz only and both
collection orders. The byte-for-byte references are not applied to the
playback build, which differs from 1.0 on purpose.

Not tested on a real FM-1 yet: the playback endpoint appears in
Windows' Playback list only after the host accepts the descriptors.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-04 19:25:29 -03:00
..
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00
2026-10-17 19:04:28 -03:00