I am having a spot of difficulty with the g.722.1 decoder sample source code.
We have an application which receives 722.1 rtp packets and it attempts to decode these into raw audio information to write to file. It seems as though I have mostly done things correctly however the final raw audio seems to be bad data. Silence followed by bursts of random noise.
Is there anything in particular that I should be doing with the data from the rtp payload before passing it onto the apiG722Decode function. I am a bit confused by the phrase (from rfc3047) "The G.722.1 encoder bit stream is split into a sequence of octets (60 or 80 depending on the bit rate), and each octet is in turn mapped into an RTP octet." If the output from the encoder is put in left to right order MSB to LSB directly into the rtp payload then I have something else wrong here...
G.722.1 decoder and RTP Packetisation