LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Play audio while recording WAV file?

Is there a simple way to play audio through the PC speakers at the same time that it's being recorded as a WAV file via the Sound Input Read VI?  I know I can do this through the Windows mixer, but would like to be able to do it through LabView to allow the sound card input to be heard only when the WAV file is being recorded, and muted at other times. 

 

My initial thought is to record to WAV in very small chunks and append a file while playing back each chunk in near real time, but I don't like this approach.  Any better ideas?

 

Thanks in advance,

 

Andy

0 Kudos
Message 1 of 3
(3,778 Views)

Hi Andy,

 

Check out the Simultaneous Sound IO.vi example that ships with LabVIEW.  It's at least a good start along the lines of what you are asking for.  You can just try to add the file I/O portion.  The example is in the Example Finder (Help>>Find Examples...).  Look under Hardware Input and Output >> Sound.

 

Hope it helps! 

Brian A.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(3,739 Views)

Perfect...I was 90% of the way there, the examples will get me the rest of the way.

 

Thanks!

 

Andy

0 Kudos
Message 3 of 3
(3,737 Views)