Heres my 'release' version of the FLAC codec for the 2.0.36 firmware. The FLAC codec now supports ReplayGain. The default option is that this is disabled and the codec will run in its normal lossless mode. If you wish to enable ReplayGain then run the script enableReplayGain.roku included in this package. ReplayGain will only be applied to FLAC files that have the necessary tags within the files.
While the PhotoBridge does not support 24 bit sample sizes, the codec does support files using 24 bit samples. These files are 'dithered' to 16bit during playback. While this process is not lossless, it does mean that the codec does play the files.
Please run the sonata application at least once before making these changes (the sonata application makes a number of files the first time it is ever run).
Two possible ways of installing this, the easy way (just click on an icon to install) or the techie way (using telnet etc.).
Easy Method
Download the following package
http://members.upc.ie/p.mc.quillan/FLACinstall_V1.1_fw36.zip
Unzip the contents on your computer (keep the directory structure).
Create a directory (lets say codecs) on a compact flash card or network share and copy the contents of the zip file into this directory.
You should be then ready to install - an icon should be on the desktop (in the share or compact flash card where you installed the files) - the application will be called installFLACcodec
Click on this.
You should now be able to play your FLAC files!
Important Note This install script does not copy the codec into the internal memory of the PhotoBridge - the codec is stored in the directory you created on the compact flash card (or network share).. If the PhotoBridge cannot see the codec (say you've removed the compact flash card that you stored the codec on) then you can't play FLAC files.
More details in the readme file enclosed in the zip file.
Techie Method
Download the above zip file
+++++++
Step 1
======
Add the following line
flac:String:FLAC
to the end of the file
/etc/rokucascade/settings/com.roku.deschutes.sonata.extensions
Step 2
======
After extracting from the codec library zip file, copy the file
libCascadeAudioCodecFLAC.so
to the directory
/etc/rokucascade/codecs
I would suggest however that you store the FLAC codec (as well as any other third party codecs) in a shared folder or on a compact flash card and put a symbolic link in the /etc/rokucascade/codecs directory linking to that particular codec file - this will keep space free in the internal storage area.
+++++++
This codec should be complete, please let me know if you've any problems.
Edit V0.3.2 is a slightly updated version relative to the version originally uploaded. V0.3.2 has full 8 bps support (as well as the usual 16 bps support).
Edit 29 April V0.4 available. This has slightly neater internal error handling and has had the code generally tidied. Library file is now less than 100KB in size.
Edit 30 April V0.5 available. This fixes a bug where some FLAC files produced extra 'sound' (static or perhaps beeping sound) for a fraction of a second at the end of some songs.
Edit 4 May V0.6 available. This is the release version of the codec. Now using integer-only code, also 13KB smaller in size.
Edit 14 May Added new easy installation method
Edit 21 May Recompiled for 2.0.24
Edit 10 July Version 0.7 available. This version has better overall memory management.
Edit 19 September Version 0.7a available. Added support for 'streamed' FLAC music from SlimRoku.
Edit 20 November Version 0.7b available. Fixed bug when reading metadata from a corrupt FLAC file
Edit 12 January Version 0.8 available. Added optional ReplayGain support
Edit 26 May Version 0.9 available. Added 24 bit playback support.
Edit 2 June 2007 Version 1.0 available. Now based on libFLAC 1.1.4
Edit 10 August 2007 Version 1.1 available. Now based on libFLAC 1.2.0