Repository navigation
feat(sdr): OpenWebRX IMA ADPCM decoder (A3) - #184
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements ROADMAP item A3: clean-room IMA ADPCM decoding for the OpenWebRX native adapter.
js/modules/owrx-adpcm.mjs: clean-room IMA ADPCM decoder (no copied code); step/index tables verified value-by-value against csdrima_adpcm.c; low-first nibble order; SYNC markers resync mid-stream and across WebSocket chunks; a trailing partial SYNC prefix is held for the next message, never decoded as audio.js/modules/openwebrx-native.mjs: config gate acceptsnoneandadpcmonly (unknown compression still fails closed withunsupported_codec); one continuous ADPCM audio stream per DSP session, reset on connect and profile change; ADPCM FFT frames decode to dB bins (10 lead-in pads dropped, values /100).tests/owrx-adpcm.test.cjs(11 tests: full table vs csdr, hand-traced vector[0x77, 0x08] -> [11, 41, 37, 40], SYNC resync, prefix hold, index clamp, invalid input, round-trip, ADPCM FFT) + 3 new tests intests/openwebrx-native.test.cjs(ADPCM audio at 12/48 kHz, ADPCM FFT dB, profile-change reset); the closed-failure case moved fromadpcmtobogus-codec.scripts/openwebrx_audio_qa.cjs: theunsupportedQA case now sendsbogus-codec(ADPCM is supported now).owrx-adpcm.mjsin SHELL) + README/ROADMAP/PROJECT_STATUS/AI_HANDOVER synced in the same PR.Local gates (run on the exact reconciled content):
node --checkapp.js + all modules OK; Node tests 245/245 pass; Python tests 129 OK.Open item: no live ADPCM fixture exists — live listening verification against a real ADPCM receiver is still open (the decoder is verified by hand-traced vectors, round-trips and the csdr table only).