Write G.721 encoding #598

Open
opened 2025-09-02 10:09:08 +00:00 by martinwguy · 0 comments
martinwguy commented 2025-09-02 10:09:08 +00:00 (Migrated from codeberg.org)

Write G.721 encoding

Description

When SoX writes -e gsm-full-rate it encodes to G.610 format
but there is also an unused function g721_encoder().

Analysis

The related g721_decoder() function is used in src/au.c.

src/wav.c should also be able to use this as it has WAVE_FORMAT_G721_ADPCM
though it does not even decode that at present (issue #599).

au.c also uses g723_{24,40}_decoder() and there are the respective
_encoder() functions, also unused, and WAVE_FORMAT_G723_ADPCM
also exists (see #600) so that should be possible too.

# Write G.721 encoding ## Description When SoX writes `-e gsm-full-rate` it encodes to G.610 format but there is also an unused function `g721_encoder()`. ## Analysis The related `g721_decoder()` function is used in `src/au.c`. `src/wav.c` should also be able to use this as it has `WAVE_FORMAT_G721_ADPCM` though it does not even decode that at present (issue #599). `au.c` also uses `g723_{24,40}_decoder()` and there are the respective `_encoder()` functions, also unused, and `WAVE_FORMAT_G723_ADPCM` also exists (see #600) so that should be possible too.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martinwguy/sox_ng#598
No description provided.