savelocalwavs option added.
This commit is contained in:
parent
0ffe9ddfe7
commit
525b00fc50
11
tojam
11
tojam
@ -105,6 +105,7 @@ configure_ninjam() {
|
|||||||
while [[ $menuCode -ne 1 ]]; do
|
while [[ $menuCode -ne 1 ]]; do
|
||||||
settings=(
|
settings=(
|
||||||
"anonymous" "Login in anonymously: ($anonymous)"
|
"anonymous" "Login in anonymously: ($anonymous)"
|
||||||
|
"save local wavs" "Save Individual Tracks: (${saveLocalWavs})"
|
||||||
"save mixdown" "Save Mixdown: (${saveMixdown})"
|
"save mixdown" "Save Mixdown: (${saveMixdown})"
|
||||||
"save source files" "Save Source Files: (${saveSourceFiles/-nosavesourcefiles/false recommended})"
|
"save source files" "Save Source Files: (${saveSourceFiles/-nosavesourcefiles/false recommended})"
|
||||||
"sound driver" "Sound Driver: (${soundDriver%% *})"
|
"sound driver" "Sound Driver: (${soundDriver%% *})"
|
||||||
@ -128,6 +129,15 @@ configure_ninjam() {
|
|||||||
sed -i "s/^anonymous=.*/anonymous=\"${anonymous}\"/" "${config}/config" &&
|
sed -i "s/^anonymous=.*/anonymous=\"${anonymous}\"/" "${config}/config" &&
|
||||||
dialog --msgbox "Anonymous login set to ${anonymous}." -1 -1
|
dialog --msgbox "Anonymous login set to ${anonymous}." -1 -1
|
||||||
;;
|
;;
|
||||||
|
"save local wavs")
|
||||||
|
saveLocalWavs="$(dialog --yesno "Save individual tracks? (Output is in wav format.)" -1 -1 --stdout)"
|
||||||
|
saveLocalWavs=$?
|
||||||
|
[[ ${saveLocalWavs} -eq 255 ]] && continue
|
||||||
|
saveLocalWavs="${saveLocalWavs/0/true}"
|
||||||
|
saveLocalWavs="${saveLocalWavs/1/false}"
|
||||||
|
sed -i "s/^saveLocalWavs=.*/saveLocalWavs=\"${saveLocalWavs}\"/" "${config}/config" &&
|
||||||
|
dialog --msgbox "Save individual tracks set to ${saveLocalWavs}." -1 -1
|
||||||
|
;;
|
||||||
"save mixdown")
|
"save mixdown")
|
||||||
saveMixdown="$(dialog --yes-label "disabled" \
|
saveMixdown="$(dialog --yes-label "disabled" \
|
||||||
--extra-button \
|
--extra-button \
|
||||||
@ -248,6 +258,7 @@ if ! [[ -r "${config}/config" ]]; then
|
|||||||
{ echo 'alsaParameters=""';
|
{ echo 'alsaParameters=""';
|
||||||
echo 'anonymous="true"';
|
echo 'anonymous="true"';
|
||||||
echo 'oggBitrate="128"';
|
echo 'oggBitrate="128"';
|
||||||
|
echo 'saveLocalWavs="false"';
|
||||||
echo 'saveMixdown="disabled"';
|
echo 'saveMixdown="disabled"';
|
||||||
echo 'saveSourceFiles="false"';
|
echo 'saveSourceFiles="false"';
|
||||||
echo 'soundDriver="jack"';
|
echo 'soundDriver="jack"';
|
||||||
|
Loading…
Reference in New Issue
Block a user