Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: lecky on March 18, 2010, 01:09:39 PM

Title: load config file dynamically
Post by: lecky 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
Title: Re: load config file dynamically
Post by: saratoga on March 18, 2010, 01:14:50 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.

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.
Title: Re: load config file dynamically
Post by: pabouk 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.
Title: Re: load config file dynamically
Post by: MajiKool Dragonâ„¢ on March 18, 2010, 09:20:26 PM
sounds like a good idea to me.
Title: Re: load config file dynamically
Post by: JdGordon on March 18, 2010, 09:30:40 PM
brought up many times, very unlikely it would be accepted.