Say I have a big list of wave samples, can I write those wave samples to a wave file? If possible, how?
Thanks, August.
Say I have a big list of wave samples, can I write those wave samples to a wave file? If possible, how?
Thanks, August.
yes. open sample1.wav store data in array. go through all sample files. rewrite new wave file with all data.
http://msdn.microsoft.com/library/de..._functions.asp
http://msdn.microsoft.com/library/de...waveinopen.asp
Last edited by kryptkat; 12-31-2005 at 04:07 PM.
From how I'm understanding this you basically want to append wave files together. I'm not sure that the functions provided by kryptkat will be any use - I think they're only good for playing, not interpreting wave files.
But you do need to read the files in and out. I'd recommend going to Wotsit's and reading up on the wav file format. Search the web. The Wikipedia article, while containing little info itself, appears to have some nice links that might help.
A best case scenario is that all your wave files have the exact same sample rate and bits per sample, and they're all just PCM. (Wave files can be compressed - rare, but possible.) If they don't, you'll have to choose what you'd like the result to be, and convert them.
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)