Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Record/Mix/Change BitRate, SampleRate & Convert to Mp3.

$
0
0
Hi Mark Heath (And everyone)

Many thanks for your great library !!! I need your help for my situation.

I'm writing a Sound Recorder Program and dealing with this case:
  • A function which Record from both Mic/Speaker and then Mix into 1 mp3 file at the desired BitRate/SampleRate (It have to do realtime - output file keep up to date and not corrupted event in the case the computer is down when recording).
My implementation is like this.
  • Record from Mic/Speaker into separated file (Using WaveIn/WasapiLoopbackCapture)
  • Mix those files (using WaveMixerStream32)
  • Convert Mixed file to Mp3 (Using Mp3Writer)
My questions is:
  1. Can I do all those step in realtime and write directly to mp3 file?
  2. Record process could take hours... Why your WaveWriter only flush the Stream when it disposing ? It took time and make program freezing.
    (I'm modified the Flush function and added 3 Update......Chunk function and it work fine.
    Is it better? Do you have any comments about this modification? I'm concern about the seek process when file size is to long...)

Viewing all articles
Browse latest Browse all 5831

Latest Images

Trending Articles



Latest Images