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