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
| |-+  Feature Ideas
| | |-+  load config file dynamically
« previous next »
  • Print
Pages: [1]

Author Topic: load config file dynamically  (Read 2369 times)

Offline lecky

  • Member
  • *
  • Posts: 3
load config file dynamically
« on: March 18, 2010, 01:09:39 PM »
Hi all,
What do you think about this?
We have e.g this directory structure
music -> classic,pop
recordings -> radio,audio_books

my idea:
I would like to implement (i can work on it, it looks easy but i'm quite new in this project so may be that i don't see something crucial)
a feature which automatically loads configuration file when audio file from particular folder is played. E.G.
- i have a config file (with name autoload.config) in the recordings directory and another config (with same name) in the recordings/audiobooks directory,
- When user asks to play file from E.G. recordings/radio, a simple algorithm looks if there is a autoload.config in the current folder or in the parent
folders and if there is a file then it will be automatically loaded before playback starts (recordings/autoload.config in this case)
- when user asks to play (or file is in a playlist and is going to be played) a file from recordings/audio_books/firstbook folder, algorithm finds a file
recordings/audiobooks/autoload.config and loads this file before playback.
- when something from music/* is played then nothing happens (or may be that some general config file stored in the root folder of the player will be loaded)

What do you think about this? Can this be accepted in to the code? Is there some complication which i don't see why this cannot be implemented (a question
for developers)? For me it seems that it is enough to add a functionality to playback.c and of course to update config dialogs (it could be fine to have
a possibility to disable this function)

It could be great (okay for me :)) to have this functionality. I have many different recordings e.g. with different volumes and so. Some of them are well
played with compressor (radio games) other are okay without this functionality.
Thanks for all replyes
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: load config file dynamically
« Reply #1 on: March 18, 2010, 01:14:50 PM »
Quote from: lecky on March 18, 2010, 01:09:39 PM
What do you think about this? Can this be accepted in to the code?

I dislike the idea of putting niche features into the playback engine.  So I do not think I would like to see this accepted.

Quote from: lecky on March 18, 2010, 01:09:39 PM
It could be great (okay for me :)) to have this functionality. I have many different recordings e.g. with different volumes and so.

We have replaygain already which can correct for differences in volume.  We don't have an easy way to enable the compressor automatically though.
Logged

Offline pabouk

  • Member
  • *
  • Posts: 387
Re: load config file dynamically
« Reply #2 on: March 18, 2010, 01:18:16 PM »
For me this function would be great :D

It looks like Rockbox is capable of loading configuration during active playback.
Logged

Offline MajiKool Dragonâ„¢

  • Member
  • *
  • Posts: 147
  • I'm me!
Re: load config file dynamically
« Reply #3 on: March 18, 2010, 09:20:26 PM »
sounds like a good idea to me.
Logged
"Isn't it funny how even the coldest weather isn't so cold when you've got people who care about you to walk through it with you." - MajiKool Dragonâ„¢
SanDisk Sansa c240v1 + 16GB µSDHC, Apple iPhone 4 iOS4.2.1 Jailbroken

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: load config file dynamically
« Reply #4 on: March 18, 2010, 09:30:40 PM »
brought up many times, very unlikely it would be accepted.
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  load config file dynamically
 

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

Page created in 0.091 seconds with 15 queries.