<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Hi Ben.  A quick scan of the Android information I could find online indicates that Java is the primary development environment.  You're not going to be able to create a feasible FLAC implementation in Java.  Instead, you'll need to use GCC to compile the C code in the FLAC library for the ARM processor in the Android platform.  So, I'm not surprised that OpenCore is written in C.</div><div><br></div><div>Also, to be useful, the new FLAC code will have to be hooked into the operating system so that it is universally recognized as a valid audio format.  That doesn't seem like a small feat.  The bug you cited lists some of the changes that would be needed.</div><div><br></div><div>An alternative would be to modify the music player only, so that it supports FLAC even if the rest of Android does not.  This would be an inferior solution.</div><div><br></div><div>Finally, I suggest that you start small, and try to introduce a simple audio format as an addition to Android.  If you can add a new format successfully, then you should be able to take the next step and compile the FLAC library as another added audio file format.</div><div><br></div><div>I believe that some work has been done in the FLAC community to support optimized ARM compilations, but I do not have any recent information on this.</div><div><br></div><div>Anyway, it would be really cool to see FLAC on Android, and as people are saying, it would be very appropriate.  FLAC was designed to work on small platforms as well as large, so it should be possible if Android supports added audio formats.</div><div><br></div><div>Good luck.  When you get to specific questions, I'm sure you'll find some help from this list.</div><div><br></div><div>Brian Willoughby</div><div>Sound Consulting</div><div><br></div><br><div><div>On Feb 23, 2009, at 14:21, Ben McCann wrote:</div>I was wondering if anyone here had thought about FLAC support on the Android.  It would be great for FLAC adoption.<br>There's a <a href="http://code.google.com/p/android/issues/detail?id=1461">bug open for it</a> on which I've posted some details about how I think it would need to be implemented.  It appears to me that it would need to be added to the OpenCore component, which is written in C.<br></div><br></body></html>