release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Search | Go
Wiki > Main > DocsIndex > HowToWriteCodecs (r5)

How to write a codec for Rockbox

Codec structure

  • TODO

Adding a decoder to Rockbox

This is of course subject to change as things move around in the source.

  • Put your source in apps/codecs

  • apps/codecs/SOURCES
    • Add the file name.

  • apps/codecs/Makefile
    • Add a rule like ${OBJDIR}/wav.elf : $(OBJDIR)/wav.o

  • firmware/export/id3.h
    • Add a value to the Audio file types enum.

  • firmware/id3.c
    • Add an entry to audio_formats[]

  • apps/metadata.c
    • Add a case to the switch in get_metadata()

  • apps/metadata/
    • Add your metadata detection here.

  • apps/filetypes.c
    • Add an element to inbuilt_filetypes struct.
Edit | Attach | Print version | History: r11 | r6 < r5 < r4 < r3 | Backlinks | View wiki text | More topic actions...
r5 - 24 Jul 2008 - 17:38:52 - RobertMenes

Parents: DocsIndex
Copyright © by the contributing authors.