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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  What is CONFIG_CODEC == SWCODEC
« previous next »
  • Print
Pages: [1] 2

Author Topic: What is CONFIG_CODEC == SWCODEC  (Read 4137 times)

Offline fed

  • Member
  • *
  • Posts: 54
What is CONFIG_CODEC == SWCODEC
« on: June 19, 2007, 12:12:34 AM »
I am working through the code to try to figure out how to do my own mods. I can't figure out what 'CONFIG_CODEC == SWCODEC' means.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: What is CONFIG_CODEC == SWCODEC
« Reply #1 on: June 19, 2007, 12:17:58 AM »
It means "if this player is a software codec target", and software codec means any player which uses software to decode music, rather than a hardware decoder. Currently all non-Archos Rockbox players are software codec players.
Logged

Offline fed

  • Member
  • *
  • Posts: 54
Re: What is CONFIG_CODEC == SWCODEC
« Reply #2 on: June 19, 2007, 12:25:40 AM »
Thanks!

What about 'done = true'?  I suppose it means diffirent things in diffirent places in the code.  But I thought I'd ask anyway.
Logged

Offline safetydan

  • Developer
  • Member
  • *
  • Posts: 248
Re: What is CONFIG_CODEC == SWCODEC
« Reply #3 on: June 19, 2007, 12:32:40 AM »
The meaning is going to depend on exactly what the code is doing.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: What is CONFIG_CODEC == SWCODEC
« Reply #4 on: June 19, 2007, 12:33:25 AM »
A single = means assignment. It puts the value of the thing on the right inside the variable on the left. What this means in terms of what happens next depends entirely upon what code looks at that variable and what that code expects it to be.
Logged

Offline fed

  • Member
  • *
  • Posts: 54
Re: What is CONFIG_CODEC == SWCODEC
« Reply #5 on: June 19, 2007, 12:39:48 AM »
That's what I thought.  Thanks anyway.

I'm trying to find the main (or root) menu, to add a function to the rec button.  Do you know which file has this menu?  I have looked in main_menu.c, root_menu.c, and a bunch of others, but I can't seem to find it.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: What is CONFIG_CODEC == SWCODEC
« Reply #6 on: June 19, 2007, 12:44:20 AM »
What you probably really want are the files in /apps/keymaps. That's where you'd change what buttons do what in a given screen.
Logged

Offline fed

  • Member
  • *
  • Posts: 54
Re: What is CONFIG_CODEC == SWCODEC
« Reply #7 on: June 19, 2007, 12:47:42 AM »
I've figured that out so far.  I've even succesfully changed a couple of buttons in the rec screen, and added the function to recording.c.  Now, I'd like to add a button function to the main menu (the one that starts up when rockbox boots.  The one with 'Files, Database, Setting, Recording, ...).

Do you know where that file is?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: What is CONFIG_CODEC == SWCODEC
« Reply #8 on: June 19, 2007, 12:53:49 AM »
Are you just trying to find root_menu.c/.h in /apps?
Logged

Offline fed

  • Member
  • *
  • Posts: 54
Re: What is CONFIG_CODEC == SWCODEC
« Reply #9 on: June 19, 2007, 01:04:58 AM »
I tried that one, but I cannot find the switch statement to insert my new function case.
Logged

Offline fed

  • Member
  • *
  • Posts: 54
Re: What is CONFIG_CODEC == SWCODEC
« Reply #10 on: June 19, 2007, 01:25:28 AM »
Now that I look at the root_menu.h, it look slike the right one.  Only, it is in a diffirent format than the recording.c, so I don't know how to insert my new function.  

Where would I put it?

By the way, thanks for your help so far.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: What is CONFIG_CODEC == SWCODEC
« Reply #11 on: June 19, 2007, 01:29:56 AM »
Unfortunately, I can't really help you further. I've got no experience here, really.
Logged

Offline fed

  • Member
  • *
  • Posts: 54
Re: What is CONFIG_CODEC == SWCODEC
« Reply #12 on: June 19, 2007, 01:46:55 AM »
Thanks anyway.

Any idea who or where I could ask?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: What is CONFIG_CODEC == SWCODEC
« Reply #13 on: June 19, 2007, 01:52:13 AM »
If you show up in the IRC channel at the right time, someone might know.
Logged

Offline fed

  • Member
  • *
  • Posts: 54
Re: What is CONFIG_CODEC == SWCODEC
« Reply #14 on: June 19, 2007, 01:56:22 AM »
Thanks.  

Until next,

Fed
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  What is CONFIG_CODEC == SWCODEC
 

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

Page created in 0.077 seconds with 16 queries.