Error: "No compatible package found for sample rate 44.099998474121094kHz"
Root cause:
- jamClient.GetSampleRate() returns floating-point: 44.099998474121094
- Package sample_rate is stored as integer: 44
- Strict equality check (===) fails due to type/precision mismatch
Solution:
Normalize the sample rate before comparison using the same logic as
fqId construction: rawSampleRate >= 46 ? 48 : 44
This converts:
- 44.099998474121094 → 44
- 48.0 → 48
Matches the pattern used in loadJamTrack thunk where fqId is built as:
`${jamTrack.id}-${sampleRate === 48 ? '48' : '44'}`
Fixes "No compatible package found for sample rate" error.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>