I don't think there is native CVI function to do this. You have to use windows SDK function. Faster way to do this is using acquire sound vi of LabVIEW. LabVIEW has built in functions to do exactly what you need.
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1