- Status Closed
- Percent Complete
- Task Type Patches
- Category Settings
- Assigned To No-one
- Operating System
- Severity Low
- Priority Very Low
- Reported Version
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#1429 - Per file/directory cfg file loader
Attached is a patch that allows for automatically
loading of cfg like files that can be maintained on a
per directory, per mp3, or per m3u basis. The files
handled include:
1) mp3-specific, called trackname.cfo
2) m3u-specific, called playlist.cfo
3) dir-specific, called _default.cfo
I changed the extension (config override) because I
didn't want these files to show up in the file browser.
A user should never need to "play" one of these files
manually.
Some layering of cfg files is also allowed. You can
have a _default.cfo file in a given directory and a
trackname.cfo as well. The _default.cfo will get loaded
first, then the trackname.cfo will get loaded.
After playing a given song with a .cfo override file
associated with it, the settings prior to loading the
override file are restored.
One feature I didn't implement was attempting to
recurse the directory structure for a given file,
loading every _default.cfo in the path… If this is a
feature anyone wants, let me know and I can add it.
2006-03-18 22:42
Reason for closing: Out of Date
Additional comments about closing: Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407
I more up-to-date version of this
approach should better use the
compressed-audio buffer to store this
data in so that we won\'t need disk
spinups between songs to set a new
config
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
The latest patch (2) fixes a problem that when loading a
playlist, the configuration was not getting loaded properly.
It also restores the configuration when stopping the mp3
rather than waiting until the next file is selected.
This patch should fix the sound settings and file settings
(eg. wps file) getting messed up when switching songs.
Great idea, Brian.
I had broken the resume function with my previous patches.
This patch (4) fixes resume.
Patch 5 is an update against the current cvs. No functional
changes.
Your change of playlist_get_resume_info breaks the bookmark
patch. Also to me playlist_get resume_info is a query function
so I think it's not the best place to change global_settings.
Change the code in wps.c slightly instead to something like
this (hope you can find the place)
if (!playlist_get_resume_info(&global_settings.resume_index))
{
}
Keep up the great work/Henrik
Attached is a patch to fix Henrik's issue. I didn't try
applying the bookmarking patch as it was going to require a
bit of work (The patch I downloaded seemed to be a bit out
of date), but I did what you suggested. I also fixed a small
bug that prevented the patch from doing anything useful;)
Keeping current with cvs. No new features.
Attached is an update which fixes a bug in that per mp3 file
cfo files were getting loaded while the previously playing
song was still playing. It also adds a .cfg file option:
rvolume, which can be used to adjust the relative volume of
a given song by using +10 to increase volume by 10 or -10 to
decrease by 10. Documentation is now updated as well.