Mp3StreamingDemo throws exception

Sep 9, 2011 at 3:52 PM

Hi,

I am just trying to runt the Mp3Streaming Demo but I get the following exception:

 NAudio.MmException was unhandled  Message=AcmNotPossible calling acmStreamConvert  Source=NAudio  StackTrace:       at NAudio.MmException.Try(MmResult result, String function) in D:\Development\2011\RadioStreaming\naudio_db92aece4b2f\NAudio\Wave\MmeInterop\MmException.cs:line 39       at NAudio.Wave.Compression.AcmStreamHeader.Convert(Int32 bytesToConvert, Int32& sourceBytesConverted) in D:\Development\2011\RadioStreaming\naudio_db92aece4b2f\NAudio\Wave\Compression\AcmStreamHeader.cs:line 63       at NAudio.Wave.Compression.AcmStream.Convert(Int32 bytesToConvert, Int32& sourceBytesConverted) in D:\Development\2011\RadioStreaming\naudio_db92aece4b2f\NAudio\Wave\Compression\AcmStream.cs:line 155       at NAudio.Wave.AcmMp3FrameDecompressor.DecompressFrame(Mp3Frame frame, Byte[] dest, Int32 destOffset) in D:\Development\2011\RadioStreaming\naudio_db92aece4b2f\NAudio\FileFormats\Mp3\Mp3FrameDecompressor.cs:line 44       at NAudioDemo.MP3StreamingPanel.StreamMP3(Object state) in D:\Development\2011\RadioStreaming\naudio_db92aece4b2f\NAudioDemo\Mp3StreamingDemo\MP3StreamingPanel.cs:line 126       at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)  InnerException: 13:16 09/09/2011 Friday

 
Can anyone help?

Thanks 

Sep 12, 2011 at 7:35 AM

I have just found out that this problem is caused by a  malformed file. If I play other files it does not crash, however, the playback is very slow, like you are playing the song is slow motion

Coordinator
Sep 15, 2011 at 12:44 PM

The slow motion thing possibly indicates that the wrong waveformat is being used - e.g. often number of channels