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

PlaybackStopped not called with MemoryStream

Apr 18, 2013 at 7:56 PM
Trying to play an mp3 from a byte[], but OnPlaybackStopped is never called.

mNPlayer = new WaveOut();
MemoryStream ms = new MemoryStream(bytes);
WaveStream ws = new Mp3FileReader(ms);
ws = new WaveChannel32(ws);
WaveChannel32 wc32 = new WaveChannel32(ws);
wc32.PadWithZeroes = false;
mNPlayer.PlaybackStopped += OnPlaybackStopped;
mNPlayer.Init(wc32);
mNPlayer.Play();
Apr 18, 2013 at 8:02 PM
Removed the

ws = new WaveChannel32(ws);

and it works now.