views:

1079

answers:

3

Hello everybody,

I need to encode a wav file to another file format (pcm). This format has to following properties: 8kHz, 16-bit. Has anybody an idea how to do this in c# or vb?

Thank you in advance, JaQ

A: 

try Alvas

Searock
A: 

I am not sure exactly what you want to do. WAV files are (usually) just wrappers around uncompressed pcm data.

But, whether you want to access the data, or write out RAW header-less PCM files, you can use libsndfile. I found some c# sample code on the ArsTechnica forums.

RE: Daniel Brückner's Answer
The author of libsndfile also wrote libsamplerate, which can simplify resampling.

wmmeyer