cohenw / practicesharp

Automatically exported from code.google.com/p/practicesharp
0 stars 0 forks source link

Trying to decode FLAC with NAudio #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi.

Not sure if this is the best place to put this, so apologies if it isn't.

Trying to use the Naudioflac.dll to convert FLAC to a WAV file, using the 
following code :

Using reader As New FLACFileReader(InputFilname)

   Using pcmStream As WaveStream =
       WaveFormatConversionStream.CreatePcmStream(reader)

       WaveFileWriter.CreateWaveFile("tmp.wav", pcmStream)
   End Using
End Using

This is the same code that works fine with the MP3filereader option, but with 
the FLAC version, it produces a massive wav file that keeps writing forever.

Any ideas?

Thanks
Simon

Original issue reported on code.google.com by si...@vectoraudio.co.uk on 26 Sep 2012 at 9:53

GoogleCodeExporter commented 8 years ago
Hi Simon,
Indeed it is not the correct place to ask this question, since it is not 
related to Practice# but to NAudio and the FLAC reader.

Did you look at the NAudioFlac demo download that I have provided? (Look at 
downloads).

Yuval

Original comment by yuva...@gmail.com on 27 Sep 2012 at 6:37

GoogleCodeExporter commented 8 years ago
Source code for NAudioFlac:
http://code.google.com/p/practicesharp/source/browse/#svn%2Ftrunk%2FNAudioFLAC

Original comment by yuva...@gmail.com on 27 Sep 2012 at 6:39

GoogleCodeExporter commented 8 years ago
Not related to Practice#, a usage issue done for another project

Original comment by yuva...@gmail.com on 1 Oct 2012 at 1:19