Dear Edouard
Have you ever tried to decode this DMR sample from "https://www.sigidwiki.com/wiki/File
MR.zip" ?
I used different SOX options but the program was not able to find good sync, I demodulated the signal by using SDR# and then I passed it to program by using SOX but I could not success to get output. therefore I changed some section of your code and I added PortAudio library to the code. I read samples from sound card that it receives data from another PC by connecting Line in cable.
On the first attempt, I played the original wav file on second PC and run the program on first PC, the program could not find any sync.
On the second attempt, I used SDR# to demodulate original file, the program was able to find sync good and some time it was able to generate some sounds but it was not clear.
In your code, there is PLL implementation and I think it is possible to decode the mentioned wav file without using any program such as SDR#, gqrx, CubicSDR,... am I right ?
Please check this problem and guide me.
Best regards.