El 31/12/17 a las 19:45, Steve escribió:
> Thanks Dani, that worked.
> 
> Just a note, it works as a pipe, but if you give a filename like
> demod.c2 instead of "-" then it will produce a headerless file.
> 
> The .c2 files now have a header with version number (code in c2enc.c),
> 
> The problem may arise at the other end, where the bytes come out,
> Kevin will need to convert the bytes back to audio.
> Being headerless the c2dec program won't know what to do.
> 
> It's always something... :-)

I didn't know about headers in .c2 files.

I'm reading the code in c2dec.c and it's rather funny. If the input
filname ends with '.c2' and has a valid header, then the mode is read
from the header. If the input filename doesn't contain a '.', then the
mode is read from the command line options. In any other case, the mode
is uninitialized.

Probably it would be much better that the command line options prevail
if they are present, and if the mode is not specified via command line
option, try to read the header regardless of the filename.

I think that the current behaviour can lead the user to unexpected
situations.

73,

Dani.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to