LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sound card buffer

Hi there!

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?

Thanks
0 Kudos
Message 1 of 2
(2,724 Views)
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.

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 2 of 2
(2,724 Views)