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 !

I can't wait for your answer, so I'm try to Do It My Self and it's done. (Mostly)

I build a class called "Listener" to listen from both Record/Playback Device
  • It raise DataAvailable for each "Chanel" just like the IWaveIn
  • And an other event when listener is stoped
The second class called "MixWriter" which receive Raw Wave Data
  • It add data to the queue for each Chanel
  • When all queue have enough data for 1 wave block, MixWriter process Mix data & Write to mp3 file directly. (use Yeti wrapper for Lame_enc.dll)
Between 2 class is main process, implement in a business class
  • Forward data from Listener to MixWriter
  • Control UI and User's Interactions.
Don't need WaveFileWriter any more !

I will post my solution here with a sample. (Still dealing with few issues... serious one)
Hope that you have any advise & improvement. :)

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>