+ /**
+ * Sets whether to swap bytes on the input to encode
+ *
+ * @param swapBytes
+ * {@code true} to swap the input bytes, {@code false} to use platform
+ * endianness
+ * @return This MP3 encoder
+ */
+ public LameMp3Encoder swapBytes(boolean swapBytes) {
+ this.swapBytes = swapBytes;
+ return this;
+ }
+
+ /**
+ * Sets whether to use highest quality encoding.
+ *
+ * @param hq
+ * {@code true} to use highest quality encoding, {@code false} otherwise
+ * @return This MP3 encoder
+ */
+ public LameMp3Encoder hq(boolean hq) {
+ this.hq = hq;
+ return this;
+ }
+