A question about recording
-
I write a program about recording a wav file. I use the waveInOpen ...etc functions .... and use mmioOpen......etc functions ...to save the wav file The wav file is correct. but how to set the time of recording time, If I want to record 2 mins , how could I do? Can somebody help me? thanks a lot. minihotto
-
I write a program about recording a wav file. I use the waveInOpen ...etc functions .... and use mmioOpen......etc functions ...to save the wav file The wav file is correct. but how to set the time of recording time, If I want to record 2 mins , how could I do? Can somebody help me? thanks a lot. minihotto
A really simple way would be to use the samples-per-second of the audio you are recording. Stop writing after (samples-per-second * 120 * bytes-per-sample) bytes have been written. It's not "real time" but it's accurate for the audio stream. Mark
-
A really simple way would be to use the samples-per-second of the audio you are recording. Stop writing after (samples-per-second * 120 * bytes-per-sample) bytes have been written. It's not "real time" but it's accurate for the audio stream. Mark
-
kevinalphaxz wrote:
Can you give me some code to see?
Honestly? No.