Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  use rockbox as player in linux
« previous next »
  • Print
Pages: [1]

Author Topic: use rockbox as player in linux  (Read 1477 times)

Offline powerpan

  • Member
  • *
  • Posts: 52
use rockbox as player in linux
« on: April 14, 2011, 11:29:28 AM »
Hi, is that possible to use the codec files only to create a simple player in linux without SDL? any tips for the structure of the program?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: use rockbox as player in linux
« Reply #1 on: April 14, 2011, 12:00:19 PM »
Yes of course.  We provide the complete source code for our decoders.  You can incorporate them into any software you like, and in the past people have ported them to VLC for use on embedded ARM systems.  Its fairly involved though, and you'll need a detailed understanding of how codecs work in whatever software you're porting them to.
Logged

Offline powerpan

  • Member
  • *
  • Posts: 52
Re: use rockbox as player in linux
« Reply #2 on: April 14, 2011, 11:14:01 PM »
any examples?
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: use rockbox as player in linux
« Reply #3 on: April 14, 2011, 11:47:57 PM »
Didn't he just give an example?
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline powerpan

  • Member
  • *
  • Posts: 52
Re: use rockbox as player in linux
« Reply #4 on: April 15, 2011, 03:19:56 AM »
the full source code it's a little bit too complicated by it's own kernel.
I checked the sources for some time found the developers use a lot low layer methods including ELF layout to load the codec(the dynamic lib) into queue and open music file into queue, I just wanna use very simple calls to codec_main, but got no sample codes guide how I could do that.
test_codec.c has big difference with codec_thread.c

Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: use rockbox as player in linux
« Reply #5 on: April 15, 2011, 03:31:41 AM »
yes the codecs are loaded when needed in rockbox, if your simple player links them statically you can of course avoid all that but you will then need to handle multiple codecs in some different way
Logged

Offline powerpan

  • Member
  • *
  • Posts: 52
Re: use rockbox as player in linux
« Reply #6 on: April 15, 2011, 09:31:03 AM »
I wanna just use dlopen to use the codec, how?
Logged

Offline powerpan

  • Member
  • *
  • Posts: 52
Re: use rockbox as player in linux
« Reply #7 on: April 21, 2011, 10:11:12 AM »
after 2 days work, made an application that could load a codec to play music lol:

congratulation.....
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  use rockbox as player in linux
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.084 seconds with 15 queries.