I was wondering if anyone knows a way to keep trace of the amount of data in a standard sound card buffer. I'm outputing chunck of music using the SO tools and I want to be able to check that buffer to keep feeding it before it goes out of data. Does anyone have an idea?
The sound card VI's weren't designed to query the buffer. You will probably have to compute programatically how many samples have been played at any given time. If the number of played bits is almost equal to the buffer size then you will know the buffer is close to empty. This is assuming you always start with a full buffer.