FreeCalypso > hg > gsm-codec-lib
comparison amrefr/encode-r.c @ 466:0c4e1bc06740
amrefr-encode-r: use the new DHF xform that matches T-Mobile
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 12 May 2024 21:44:59 +0000 |
parents | 1bf1bbcef763 |
children |
comparison
equal
deleted
inserted
replaced
465:026bdc1f0dda | 466:0c4e1bc06740 |
---|---|
45 for (;;) { | 45 for (;;) { |
46 rc = robe_get_pcm_block(inf, pcm); | 46 rc = robe_get_pcm_block(inf, pcm); |
47 if (!rc) | 47 if (!rc) |
48 break; | 48 break; |
49 amr_encode_frame(state, MR122, pcm, &amr_frame); | 49 amr_encode_frame(state, MR122, pcm, &amr_frame); |
50 amr_dhf_subst_efr(&amr_frame); | 50 amr_dhf_subst_efr2(&amr_frame, pcm); |
51 EFR_params2frame(amr_frame.param, efr_frame); | 51 EFR_params2frame(amr_frame.param, efr_frame); |
52 fwrite(efr_frame, 1, sizeof efr_frame, binf); | 52 fwrite(efr_frame, 1, sizeof efr_frame, binf); |
53 } | 53 } |
54 fclose(binf); | 54 fclose(binf); |
55 exit(0); | 55 exit(0); |