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

New Comment on "MP3"

$
0
0
I made a console app, it contains class that i called MP3, this class contains methods CreateInputStream and CloseWaveOut from this article, there's also Listen method: public void Listen() { waveOutDevice = new DirectSoundOut(); mainOutputStream = CreateInputStream(FN); waveOutDevice.Init(mainOutputStream); waveOutDevice.Play(); Console.Write("Playing..."); CloseWaveOut(); } in Main method of Program i'm making a copy of MP3, linking it to existing mp3-file, then i call Listen method and there's no sound, i've tried to initialize waveOutDevice as WaveOut, WaveOutEvent - the same result, is there any solution, what am i doing wrong?

Viewing all articles
Browse latest Browse all 5831

Trending Articles