If you only have a C compiler, how can you compile the C++ code to put a C frontend on it?<br><br><div class="gmail_quote">On Sat, Oct 6, 2012 at 2:01 AM, Gravis <span dir="ltr"><<a href="mailto:flac@adaptivetime.com" target="_blank">flac@adaptivetime.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm implementing a FLAC decoder from scratch (save OGG stuff if I can<br>
help it) because libFLAC simply will not fit my embedded platform,<br>
For the most part I'm implementing using just the documentation but<br>
not all of the documentation is concise (especially about variable<br>
sized fields) and after looking at the libFLAC source I find myself<br>
befuddled so I thought it best to get the information from the people<br>
who know these things. So...<br>
<br>
In "FRAME_HEADER" there is a field of a variable size field with the<br>
description "if(variable blocksize) \n <8-56> : 'UTF-8' coded sample<br>
number (decoded number is 36 bits)" and I find the encoding scheme is<br>
somehow alien (I can't figure out what it has to do with UTF-8) and<br>
it's two following fields to be incomprehensible. There doesn't seem<br>
to be any information indicating their purpose either.<br>
<br>
The location and coding of audio samples is very nebulous in that I<br>
don't know where they are or the specifics of how any of their<br>
encoding scheme work. More details, links to more information and<br>
maybe even some pseudo code would be very helpful. The documentation<br>
about the metadata is great... but it kinda goes downhill after that.<br>
It would be fantastic if someone could update the documentation with<br>
more information and details.<br>
<br>
Just a side note, the code seems to be written as if it were intended<br>
to be written in C++ (even to comments talk about it as if it were),<br>
so why not just make it C++ and put a C frontend on it?<br>
<span class="HOEnZb"><font color="#888888"><br>
-Gravis<br>
_______________________________________________<br>
flac-dev mailing list<br>
<a href="mailto:flac-dev@xiph.org">flac-dev@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/flac-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/flac-dev</a><br>
</font></span></blockquote></div><br>