Ok, no luck in decoding the samples...
I can't manage to get the bitstream out in the proper way.
I compiled the fromansi and toansi utilities from the etsi samples, i
can output the full frame in 16-bit format, but cdecoder never accept it
as a valid input (always complaining that the frame is wrong/corrupted).
What am i doing wrong?
This is what i tried to so far:
if (tms->cur_burst.is_traffic) {
FILE *f = fopen("traffic.out", "ab");
for(i = 0; i < 432; i++) {
bit=bits[i];
fwrite(&bit,sizeof(uint8_t),1,f);
fwrite(&zero,sizeof(uint8_t),1,f);
}
fclose(f);
Which should produce an output file with 16-bit samples, each
containing one bit of information.
Then use ./toansi to convert into a format which is compatible by the
etsi codec, use cdecoder to decode the channel and sdecoder to convert
the speech frame into a pcm file.
However, it doesn't work.
Ideas? :)
Cheers!
Ciaby