Small addition to XBMC linux VERSION [url removed, login to view]
We want XBMC to be able to read key/value pairs from a txt file. Keys correspond to a file name (with extension & without path). Values correspond to a factor in which Volume must be adjusted.
Example (txt content):
The expected result is that each time XBMC plays [url removed, login to view] the volume is multiplied by a factor of 0.8 (if volume is set at 100%, then it will be reduced to 80%). When playing [url removed, login to view] the volume will be multiplied by a factor of 0.3.
After the file is played, the volume must return to it's original value.
This feature must be active in every possible scenario capable of triggering the reproduction of a file: single file reproduction, music list reproduction, video list reproduction, etc. If there is a function involved in the start of the reproduction of any kind of file type and from any source that would be a good place to add code.
When no key/value pair is found for a specific file, then volume must not change.
More specific requirements:
- txt file must be read when XBMC loads and key/value pairs must be stored in an array for later use (including the moment when XBMC starts playing a file and searches for a key/value pair for that specific file)
- the path to the txt must be configurable by editing [url removed, login to view] file bundled with XBMC (if no path is given, then XBMC must ignore this new feature).
Good documentation must be provided (extract of how the feature was implemented, a more detailed description, diagrams, diff over files changed, description of how to test, documentation of method, classes and attributes and clear and useful comments inside code).