Add support for disabling/enabling directplay codecs

This commit is contained in:
Max Git 2020-07-16 19:25:02 +02:00
commit 378772d93f
11 changed files with 311 additions and 7 deletions

View file

@ -0,0 +1,32 @@
package com.dkanada.gramophone.model;
public class DirectplayCodec {
public String codecName;
public String title;
public String value;
public boolean selected;
public DirectplayCodec(String codecName, String title, String value, boolean selected) {
this.codecName = codecName;
this.title = title;
this.value = value;
this.selected = selected;
}
public enum Codec {
// These are all non-translatable so just keep them here.
FLAC("FLAC","flac|flac"),
MP3("MP3", "mp3|mp3"),
AAC("AAC (.m4a)", "m4a|aac"),
OPUS("OPUS (.mka)", "mka|opus"),
VORBIS("VORBIS (.ogg)", "ogg|vorbis");
public final String title;
public final String value;
Codec(String title, String value) {
this.value = value;
this.title = title;
}
}
}