o Juha Heinanen on 05/22/2012 04:13 PM:
Stefan Sayer writes:

if you add a FILE_FORMAT definition line into the speex.c you may
write that very simply to a file which does not contain any specific
header. on the speex site it also talks only about the ogg container
for speex.

i checked FILE_FORMAT for speex, but it is not trivial to add because
looks like also open and on_close functions would need to be written.
if you don't want to write anything into that files (i.e. no file header), they can be empty:

int spx_open(FILE* fp, struct amci_file_desc_t* fmt_desc, int options, long h_codec)
{
return 0;
}

int spx_close(FILE* fp, struct amci_file_desc_t* fmt_desc, int options, long h_codec, struct amci_codec_t *codec)
{
return 0;
}

but I doubt this makes sense at all, unless you always have a specific sample rate etc. i.e. it would make sense to use a proper file format, as for example ogg.

stefan
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to