mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Priority given to the transcoding mode. If set to "Direct play" the bitrate of the file will not be changed
This commit is contained in:
parent
5d5a0eb653
commit
93d6aafbcc
2 changed files with 22 additions and 18 deletions
|
|
@ -137,6 +137,10 @@ public class MusicUtil {
|
|||
}
|
||||
|
||||
private static String getBitratePreference(Context context, int connectionType) {
|
||||
String audioTranscodeFormat = getTranscodingFormatPreference(context, connectionType);
|
||||
|
||||
if(audioTranscodeFormat.equals("0")) return "0";
|
||||
|
||||
switch (connectionType) {
|
||||
case ConnectivityManager.TYPE_WIFI:
|
||||
return PreferenceUtil.getInstance(context).getMaxBitrateWifi();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue