Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21096

[RESOLVED] How to determine the amount of recorded data

$
0
0
How do I determine the amount or size of what has been recorded

I'm using waveIn to record data and I want to then save the recorded data to an output .wav file. My problem is I don't know how much has been recorded. I make a buffer to hold the sound data and record into it. I cannot find any means to determine how much has been recorded. I tried using WaveIn.dwBytesRecorded and wavInGetPosition which I have read are supposed to return the amount of what has been recorded but neither one works as they both return 0.


EDIT: Never mind. I got it. It is using .dwBytesRecorded it's just that you have to close waveIn first then call dwBytesRecorded. I was calling it before I closed waveIn.

Viewing all articles
Browse latest Browse all 21096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>