ResamplerDmoStream problem

Jan 15, 2010 at 2:24 PM

Hello.

Please help

using (WaveFileReader reader = new WaveFileReader(inputFileName))
            {  
                WaveFormat format = new WaveFormat(outputSampleRate, outputBitDepth, outputChannels);
                using (ResamplerDmoStream resampler = new ResamplerDmoStream(reader, format))  -- CLSID {F447B69E-1884-4A7E-8055-346F74D6EDB3} failed due to the following error: 80040154.
                {
                    using (WaveFileWriter writer = new WaveFileWriter(outputFileName, format))
                    {
                        byte[] buffer = new byte[1024];
                        int bytesRead;
                        do
                        {
                            bytesRead = resampler.Read(buffer, 0, buffer.Length);
                            writer.WriteData(buffer, 0, bytesRead);
                        }
                        while (bytesRead > 0);
                    }
                }
            }

Coordinator
Mar 25, 2010 at 5:38 PM

what operating system are you using?