DSPRelated.com
Forums

distinguishing file formats in libsndfile

Started by monteiro August 6, 2004
Hi,

I was using libsndfile to read files encoded in g.726(is it alright to do so?)
and write them to an oki adpcm at 6k.
the problem is that libsndfile only accepts a combo of au and g.721
and my encoded file are headerless.
any ideas about how to work around this problem?

Thanx in advance,
Joy.M.Monteiro
monteiro wrote:
> > Hi, > > I was using libsndfile to read files encoded in g.726 > (is it alright to do so?)
libsndfile doesn't handle g.726. Maybe you could write one and contribute it :-). Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ "I have long argued that the entertainment industry doesn't want people to have computers. Computers give users too much capability, too much flexibility, too much freedom. The entertainment industry wants users to sit back and consume things. They are trying to turn a computer into an Internet Entertainment Platform, along the lines of a television or VCR. This bill is a large step in that direction." -- Bruce Schneier
Sounds like a cool winter project to me :-)

Erik de Castro Lopo <nospam@mega-nerd.com> wrote in message news:<4113384C.9DAFA914@mega-nerd.com>...
> monteiro wrote: > > > > Hi, > > > > I was using libsndfile to read files encoded in g.726 > > (is it alright to do so?) > > libsndfile doesn't handle g.726. Maybe you could write > one and contribute it :-). > > Erik > -- > +-----------------------------------------------------------+ > Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid) > +-----------------------------------------------------------+ > "I have long argued that the entertainment industry doesn't want > people to have computers. Computers give users too much capability, > too much flexibility, too much freedom. The entertainment industry > wants users to sit back and consume things. They are trying to > turn a computer into an Internet Entertainment Platform, along the > lines of a television or VCR. This bill is a large step in that > direction." -- Bruce Schneier
monteiro wrote:
> > Sounds like a cool winter project to me :-)
Great!!!!!!!!!! If this is going to be part of libsndfile at some stage, please add a copyright notice (in your name) at the top of the file (see any file in libsndfile for an example) and you will need to license your code under the GNU LGPL (as the author, you will still be able to offer it separately under any other license you choose). Your best bet would be to get the encoder and decoder working separately from libsndfile and then, once its working, I can help you integrate it into libsndfile. Feel free to email me for advice, but be aware that my time to work on this is somewhat scarce. However, once you have a working encoder and decoder, it can be integrated in a matter of hours. Cheers, Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ "I don't think any MS Exec will ever die of old age. Satan doesn't need the competition." -- Digital Wokan on LinuxToday.com