Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 643
  • Last Modified:

How to split a WAV file in 2

Hello!
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.
0
hlienert
Asked:
hlienert
1 Solution
 
Cobra25Commented:
Yes, you can do this with an audio editor. There are many choices out there, one of the most popular is Audacity:

http://audacity.sourceforge.net/
0
 
ArcyQwertyCommented:
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
0
 
hlienertAuthor Commented:
Hi!

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.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now