<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Encoding uncompressed audio with FLAC in C#</title>
	<link>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/</link>
	<description></description>
	<pubDate>Fri, 10 Sep 2010 19:46:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: ac3 filter</title>
		<link>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-88868</link>
		<pubDate>Fri, 03 Sep 2010 00:58:48 +0000</pubDate>
		<guid>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-88868</guid>
					<description>thanks for this piece of info i have a blog on regarding this ones.I Should admit you managed more cooler then me</description>
		<content:encoded><![CDATA[<p>thanks for this piece of info i have a blog on regarding this ones.I Should admit you managed more cooler then me
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: codefire</title>
		<link>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86763</link>
		<pubDate>Tue, 27 Jul 2010 13:12:29 +0000</pubDate>
		<guid>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86763</guid>
					<description>Plz look at the link I have pasted into &quot;website&quot; address.
It's a 7zip file I have sent through &quot;yousendit&quot;.


That 7zip is a test-project I have made, re-using open-source code.

It can encore wav to flac and decode flac to wav, with a really good ratio.

I succeed to re-used existing code, but to be honest i'm quite lost about that libflac code and its API :-s

So, I wish it will help you to have good ratio compression, for single and multi channels, as well as different bit rates.

I am still trying to have c# code, to manage wav to flac encoding and flac to wav decoding, with such a good ratio.

And also, important for my need, it should be able to work with stream.

Thanks in advance for your help.</description>
		<content:encoded><![CDATA[<p>Plz look at the link I have pasted into &#8220;website&#8221; address.<br />
It&#8217;s a 7zip file I have sent through &#8220;yousendit&#8221;.</p>
<p>That 7zip is a test-project I have made, re-using open-source code.</p>
<p>It can encore wav to flac and decode flac to wav, with a really good ratio.</p>
<p>I succeed to re-used existing code, but to be honest i&#8217;m quite lost about that libflac code and its API :-s</p>
<p>So, I wish it will help you to have good ratio compression, for single and multi channels, as well as different bit rates.</p>
<p>I am still trying to have c# code, to manage wav to flac encoding and flac to wav decoding, with such a good ratio.</p>
<p>And also, important for my need, it should be able to work with stream.</p>
<p>Thanks in advance for your help.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stanimir Stoyanov</title>
		<link>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86721</link>
		<pubDate>Mon, 26 Jul 2010 13:10:53 +0000</pubDate>
		<guid>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86721</guid>
					<description>@codefire I have posted on the blog an article on FLAC decoding and have updated the original code. I am, however, still looking into the compression ratio issue.</description>
		<content:encoded><![CDATA[<p>@codefire I have posted on the blog an article on FLAC decoding and have updated the original code. I am, however, still looking into the compression ratio issue.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: codefire</title>
		<link>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86613</link>
		<pubDate>Fri, 23 Jul 2010 09:47:40 +0000</pubDate>
		<guid>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86613</guid>
					<description>I have also difficulties to make an application which encode/decode signals which have only 1 channel.

I can't find an open source code which work for X number of channel or X bits per samples :-(</description>
		<content:encoded><![CDATA[<p>I have also difficulties to make an application which encode/decode signals which have only 1 channel.</p>
<p>I can&#8217;t find an open source code which work for X number of channel or X bits per samples <img src='http://stoyanoff.info/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: codefire</title>
		<link>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86612</link>
		<pubDate>Fri, 23 Jul 2010 08:42:19 +0000</pubDate>
		<guid>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86612</guid>
					<description>Thanks for you reply.

When you'll fix it; could you please also show me how to decode from flac to wav ?

Because I have tried using open source codes, but have found nothing which works nice.


Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for you reply.</p>
<p>When you&#8217;ll fix it; could you please also show me how to decode from flac to wav ?</p>
<p>Because I have tried using open source codes, but have found nothing which works nice.</p>
<p>Thanks
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stanimir Stoyanov</title>
		<link>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86514</link>
		<pubDate>Tue, 20 Jul 2010 12:26:11 +0000</pubDate>
		<guid>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86514</guid>
					<description>@hanan Displaying the wave graph is as simple as taking the current amplitude value (preferably as a floating-point number in the range of [-1.0; 1.0]) and displaying it in some way. Here's an example of how to convert a WORD/ushort value from byte[] to float:

&lt;pre&gt;ushort v; float f; // 'ushort' because amplitudes are unsigned
byte[] a;

v = 32768; // Test with half of the maximum amplitude
a = BitConverter.GetBytes(v); // Same as the 'b' array in your comment
f = BitConverter.ToUInt16(a, 0) / (float)ushort.MaxValue; // Result is 0.5&lt;/pre&gt;

@codefire I will check this again, thanks, and update the post adequately.</description>
		<content:encoded><![CDATA[<p>@hanan Displaying the wave graph is as simple as taking the current amplitude value (preferably as a floating-point number in the range of [-1.0; 1.0]) and displaying it in some way. Here&#8217;s an example of how to convert a WORD/ushort value from byte[] to float:</p>
<pre>ushort v; float f; // 'ushort' because amplitudes are unsigned
byte[] a;

v = 32768; // Test with half of the maximum amplitude
a = BitConverter.GetBytes(v); // Same as the 'b' array in your comment
f = BitConverter.ToUInt16(a, 0) / (float)ushort.MaxValue; // Result is 0.5</pre>
<p>@codefire I will check this again, thanks, and update the post adequately.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: codefire</title>
		<link>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86513</link>
		<pubDate>Tue, 20 Jul 2010 11:37:37 +0000</pubDate>
		<guid>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-86513</guid>
					<description>Hi,

I have the same remark about result FLAC files which are lot bigger that the ones I generated using Flac-Fronted application.

I really need to manage wav to flac conversion into my C# .NET application, 

I don't know how to achieve such a good ratio.

Thanks in advance for replies and help.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have the same remark about result FLAC files which are lot bigger that the ones I generated using Flac-Fronted application.</p>
<p>I really need to manage wav to flac conversion into my C# .NET application, </p>
<p>I don&#8217;t know how to achieve such a good ratio.</p>
<p>Thanks in advance for replies and help.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: hanan</title>
		<link>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-84892</link>
		<pubDate>Tue, 01 Jun 2010 15:24:51 +0000</pubDate>
		<guid>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-84892</guid>
					<description>Hello, 
Thanks on the great code. I am using it to read WAV file and I am trying to display the wave on a graph. I have taken the buffer i have problem to convert it to value that I can display on graph. do you have an idea on how to display it?
I tried to convert from unsigned byte to int but without success.

public static int unsignedShortToInt(byte[] b)
	{
		int i = 0;
		i &amp;#124;= b[0] &amp;#38; 0xFF;
		i </description>
		<content:encoded><![CDATA[<p>Hello,<br />
Thanks on the great code. I am using it to read WAV file and I am trying to display the wave on a graph. I have taken the buffer i have problem to convert it to value that I can display on graph. do you have an idea on how to display it?<br />
I tried to convert from unsigned byte to int but without success.</p>
<p>public static int unsignedShortToInt(byte[] b)<br />
	{<br />
		int i = 0;<br />
		i |= b[0] &amp; 0xFF;<br />
		i
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Nicolai Dvinge</title>
		<link>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-79767</link>
		<pubDate>Tue, 09 Feb 2010 07:52:22 +0000</pubDate>
		<guid>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-79767</guid>
					<description>Thanks for sharing this nicely written code. 
However, when compressing waves to flac using your code, the Flac files are very big (only like 5 % compressionrate), compared to using the standard Flac commandline encoder. Do you have any idea how to achieve the same level of compression using your stream-based encoding?</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this nicely written code.<br />
However, when compressing waves to flac using your code, the Flac files are very big (only like 5 % compressionrate), compared to using the standard Flac commandline encoder. Do you have any idea how to achieve the same level of compression using your stream-based encoding?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Alex</title>
		<link>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-79609</link>
		<pubDate>Thu, 04 Feb 2010 12:12:51 +0000</pubDate>
		<guid>http://stoyanoff.info/blog/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/#comment-79609</guid>
					<description>Simply a great article!

For many months I tried to find a solution, thanks!</description>
		<content:encoded><![CDATA[<p>Simply a great article!</p>
<p>For many months I tried to find a solution, thanks!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
