Convert Wave to Wave with chage of Sampling frequency and bit?

Hello

I am looking for OCX(or Class Code) to convert wave files (22kHz,16bit,mono) into wave files (11kHz,8bit,mono) in my program.

Would any one have any idea?





Comments

  • : Hello
    :
    : I am looking for OCX(or Class Code) to convert wave files (22kHz,16bit,mono) into wave files (11kHz,8bit,mono) in my program.
    :
    : Would any one have any idea?
    :

    Drop half of the Sample values, and change each value into 8 bits instead of 16. Something like: Value8Bits = Int(Value16Bits / &HFFFF&)
    Though I suggest you convert the Singed Integer (the 16 bits value) to a long... without negatives. That would mean Value16Bits is a positive long value. A way to do this would be using the CopyMemory (or actually RtlMoveMemory) API.

    Or you could try and find something on the internet that will do this for you...

    Greets...
    Richard

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion