FLAC on microcontroller - diyAudio
Go Back   Home > Forums > Source & Line > Digital Source

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 25th November 2007, 02:22 PM   #1
diyAudio Member
 
Join Date: Dec 2004
Location: Brabant
Default FLAC on microcontroller

Hi,

I was wondering if anyone could help me with implementing FLAC on a microcontroller.

I've a reference design the board.

The board has an AVR32 processor on it and runs linux. I want to build a small standalone player for mp3\flac etc. It is already possible to play normal wav files via the buildt in (low quality) dac. The files are stored on the sd-card or send via the ethernet connection.

I am looking for someone who has already ported the flac library to a standalone microcontroller. I've downloaded the source but there are a lot of dependencies from other files\libraries. Also you need an assembler to build the library on the pc.

Is there an integer version of the library, without the need of using the assembly code ?


Gene
  Reply With Quote
Old 30th November 2007, 02:52 PM   #2
gmarsh is offline gmarsh  Canada
diyAudio Member
 
gmarsh's Avatar
 
Join Date: Apr 2004
Location: Halifax, NS, Canada
Default Re: FLAC on microcontroller

FLAC encoding/decoding is entirely a fixed point (integer) process. The libflac decoder does have assembly code, but that's only used if it's being compiled for specific hardware (x86, ppc). FLAC happily compiles on ARM, I don't see any reason you can't use it directly on AVR32.

Also, you'll probably find better answers on the avrfreaks.net board, rather than here.

Quote:
Originally posted by gene_klein
Hi,

I was wondering if anyone could help me with implementing FLAC on a microcontroller.

I've a reference design the board.

The board has an AVR32 processor on it and runs linux. I want to build a small standalone player for mp3\flac etc. It is already possible to play normal wav files via the buildt in (low quality) dac. The files are stored on the sd-card or send via the ethernet connection.

I am looking for someone who has already ported the flac library to a standalone microcontroller. I've downloaded the source but there are a lot of dependencies from other files\libraries. Also you need an assembler to build the library on the pc.

Is there an integer version of the library, without the need of using the assembly code ?


Gene
  Reply With Quote
Old 30th November 2007, 06:56 PM   #3
diyAudio Member
 
Join Date: Dec 2004
Location: Brabant
gmarsh,

thanks for your answer.

I've already compiled the lib. As you mentioned it is integer only and te asm is an option for the pc lib version.
It compiles almost without problems out of the box.



Gens
  Reply With Quote
Old 30th November 2007, 07:43 PM   #4
cuibono is offline cuibono  United States
diyAudio Member
 
cuibono's Avatar
 
Join Date: May 2006
Location: City of Angles
are you making a flac based diy ipod sort-of-thing? That would be totally amazing...
  Reply With Quote
Old 1st December 2007, 03:44 PM   #5
gmarsh is offline gmarsh  Canada
diyAudio Member
 
gmarsh's Avatar
 
Join Date: Apr 2004
Location: Halifax, NS, Canada
Quote:
Originally posted by cuibono
are you making a flac based diy ipod sort-of-thing? That would be totally amazing...
Check out Rockbox (google for it), open source software which runs on several different MP3 players including iPods. It plays FLAC.
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FLAC to CD player internal DAC Dyolf Digital Line Level 12 6th December 2010 12:48 PM
Wav -- Flac decoder IC ? jmar Digital Line Level 2 31st July 2009 02:40 PM
Any Flac aficionados around? Netlist Everything Else 7 16th December 2007 09:00 PM
Small standalone FLAC player DragonMaster Everything Else 19 7th February 2007 10:12 PM
Convert WMA -> Flac cOz Digital Source 1 13th October 2006 03:07 PM


New To Site? Need Help?

All times are GMT. The time now is 08:25 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright ©1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2