This project has moved. For the latest updates, please go here.

record the result of playing?

May 4, 2014 at 11:18 PM
Hi everyone, i am new to NAudio and got here directed by a MSDN user...
hope you can help me.
I am developing an application for a thesis and the function i am struggling with is recording the audio result of 2 media player components playing.
Imagine a 2-decks DJ pad where i open 1 mp3 file in each deck, and want to record the resulting mix (while playing) on mp3 or wav format.
So far i have implemented the start / stop recording from the mic but the quality is very poor.
Is there a possibility to record the result of the waveout?
Thanks for any help you can give me.
Alex
May 5, 2014 at 3:07 PM
I think you should enable stereo-mix (and set it as default) on your sound preferences. That way your sound is redirected to your line-in I believe. Check out http://www.youtube.com/watch?v=7QY6gBeabSw

It's a workaround but it might help. I dont think NAudio can provide you with such a feature.
Coordinator
May 5, 2014 at 3:16 PM
have a look at WasapiLoopbackCapture which can record what you are playing on your system
May 5, 2014 at 5:10 PM
Sebbe909 wrote:
I think you should enable stereo-mix (and set it as default) on your sound preferences. That way your sound is redirected to your line-in I believe. Check out http://www.youtube.com/watch?v=7QY6gBeabSw

It's a workaround but it might help. I dont think NAudio can provide you with such a feature.
thanks sebbe i have tried it but doesn't work because it expects something inserted in the line in jack.
The goal i want to achieve is another.
May 5, 2014 at 5:11 PM
markheath wrote:
have a look at WasapiLoopbackCapture which can record what you are playing on your system
it seems interesting i have left a comment asking if it id VB.NET compliant
Coordinator
May 6, 2014 at 8:52 AM
yes, you can use WasapiLoopbackCapture in VB.NET
May 6, 2014 at 8:58 AM
I have found this one and i think it may help but i am unable to port it to VB.NET

http://mark-dot-net.blogspot.co.uk/2014/03/how-to-record-and-play-audio-at-same.html