From 3a1ced65d5e3726ee5d09d1a742061e68829a392 Mon Sep 17 00:00:00 2001 From: antonio Date: Sun, 13 Aug 2023 23:17:05 +0200 Subject: [PATCH] feat: added options in settings to define codec and bitrate for downloaded tracks --- app/src/main/res/values-de/strings.xml | 1 + app/src/main/res/values/arrays.xml | 57 +++++++++++++++++++++ app/src/main/res/values/strings.xml | 10 ++++ app/src/main/res/xml/global_preferences.xml | 36 +++++++++++++ 4 files changed, 104 insertions(+) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index bf835cd1..767cd362 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -229,6 +229,7 @@ Sychronisierung Transkodierung Benutzeroberfläche + Transcoded download Version Warnung bei Streamen ohne Wi-Fi Um Erlaubnis fragen bevor über das mobile Netzwerk gestreamed wird. diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index f6cebaa1..0fa847e3 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -90,6 +90,35 @@ 320 + + Original + 32 kbps + 48 kbps + 64 kbps + 80 kbps + 96 kbps + 112 kbps + 128 kbps + 160 kbps + 192 kbps + 256 kbps + 320 kbps + + + 0 + 32 + 48 + 64 + 80 + 96 + 112 + 128 + 160 + 192 + 256 + 320 + + Direct play Opus @@ -120,6 +149,21 @@ flac + + Direct download + Opus + AAC + Mp3 + Flac + + + raw + opus + aac + mp3 + flac + + Ten seconds Five seconds @@ -152,4 +196,17 @@ track album + + + Do not transcode + Server settings + Wi-Fi Transcode format + Mobile Transcode format + + + 0 + 1 + 2 + 3 + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4f6e0ea5..e9528c17 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -183,9 +183,15 @@ The requested server is unavailable. If you choose to continue this dialog will not appear for the next hour. Tempo is an open source and lightweight music client for Subsonic, designed and built natively for Android. About + If enabled, Tempo will not force download the track with the transcode settings below. + Prioritize server settings used for streaming in downloads + If enabled, Tempo will download transcoded tracks. + Download transcoded tracks + Transcode format If enabled, Tempo will not force stream the track with the transcode settings below. Prioritize server transcode settings Priority on transcoding of track given to server + Transcode format for downloads Transcode format in mobile Transcode format in Wi-Fi Size of artwork cache @@ -201,6 +207,7 @@ Github Set image resolution Log out + Bitrate for downloads Bitrate in Wi-Fi Bitrate in mobile Size of media file cache @@ -222,6 +229,7 @@ Replay gain is a feature that allows you to adjust the volume level of audio tracks for a consistent listening experience. This setting is only effective if the track contains the necessary metadata. Returns the state of the play queue for this user. This includes the tracks in the play queue, the currently playing track, and the position within this track. The server must support this feature. Priority given to the transcoding mode. If set to \"Direct play\" the bitrate of the file will not be changed. + Download transcoded media. If enabled, the download endpoint will not be used, but the following settings. \n\n If \"Transcode format\" is set to \"Direct play\" the bitrate of the file will not be changed. If enabled, starred tracks will be downloaded for offline use. Sync starred tracks for offline use Theme @@ -230,7 +238,9 @@ Replay Gain Syncing Transcoding + Transcoding Download UI + Transcoded download 3.1.0 Version Stream via Wi-Fi only alert diff --git a/app/src/main/res/xml/global_preferences.xml b/app/src/main/res/xml/global_preferences.xml index 665a942d..4dde2d4e 100644 --- a/app/src/main/res/xml/global_preferences.xml +++ b/app/src/main/res/xml/global_preferences.xml @@ -154,6 +154,42 @@ app:useSimpleSummaryProvider="true" /> + + + + + + + + + + + +