How to split a WAV file in 2

Posted on 2009-02-20
Last Modified: 2012-05-06
could someone show me how exactly to split a wav file in 2 separate files, at a specific time position? The new files would then have the same format as the original file.

Thank you.
Question by:hlienert
    LVL 4

    Expert Comment

    Yes, you can do this with an audio editor. There are many choices out there, one of the most popular is Audacity:

    Expert Comment

    If you are looking for code it is quite complex
    As an overview if you could determine the bit rate you could use a loop to increment the amount of bits over time (minus the file header) and split the string there

    Accepted Solution


    I hound out how to this, by using the code inside the Wave.cpp/Wave.h provided by Microsoft. I'll be loading the whole wave file into memory and then save just the portions I want into separate files from memory. (WaveLoadFile and WaveSaveFile)

    Thanks anyway.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
    The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now