summaryrefslogtreecommitdiffstats
path: root/lib/preferences.php
diff options
context:
space:
mode:
authormartian <martian@ampache>2010-02-09 17:44:44 +0000
committermartian <martian@ampache>2010-02-09 17:44:44 +0000
commit1b35c20dd0a93b143d8b9542743a743e0db66386 (patch)
tree0500ae3eec1dfb70b66c3ca30e9a61da2c0daba8 /lib/preferences.php
parent5e52f0d7ccb6183d7e1b4e5033adad0d08a48eb6 (diff)
downloadampache-1b35c20dd0a93b143d8b9542743a743e0db66386.tar.gz
ampache-1b35c20dd0a93b143d8b9542743a743e0db66386.tar.bz2
ampache-1b35c20dd0a93b143d8b9542743a743e0db66386.zip
Adding the bandwidth option to the preferences. This changes the complexity of the UI and toggles album art.
Diffstat (limited to 'lib/preferences.php')
-rw-r--r--lib/preferences.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/preferences.php b/lib/preferences.php
index 5ea7aba4..5b496ba0 100644
--- a/lib/preferences.php
+++ b/lib/preferences.php
@@ -257,6 +257,14 @@ function create_preference_input($name,$value) {
echo "\t<option value=\"default\"$default>" . _('Default') . "</option>\n";
echo "</select>\n";
break;
+ case 'bandwidth':
+ ${"bandwidth_$value"} = ' selected="selected"';
+ echo "<select name=\"$name\">\n";
+ echo "\t<option value=\"0\"$bandwidth_0>" . _('Low') . "</option>\n";
+ echo "\t<option value=\"1\"$bandwidth_1>" . _('Medium') . "</option>\n";
+ echo "\t<option value=\"2\"$bandwidth_2>" . _('High') . "</option>\n";
+ echo "</select>\n";
+ break;
case 'transcode':
${$value} = ' selected="selected"';
echo "<select name=\"$name\">\n";