[prev in list] [next in list] [prev in thread] [next in thread] 

List:       semsdev
Subject:    Re: [Semsdev] recommended audio file format? (again)
From:       Stefan Sayer <stefan.sayer () frafos ! com>
Date:       2012-05-22 14:34:07
Message-ID: 4FBBA3DF.5090902 () frafos ! com
[Download RAW message or body]

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
Semsdev@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/semsdev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic