deps: move exoplayer to app
Move ExoPlayer from a top-level directory to srclibs.
This commit is contained in:
@@ -60,7 +60,8 @@
|
||||
</activity>
|
||||
|
||||
<!--
|
||||
Workaround to get apps that blindly query for ACTION_MEDIA_BUTTON working
|
||||
Workaround to get apps that blindly query for ACTION_MEDIA_BUTTON working.
|
||||
See the class for more info.
|
||||
-->
|
||||
<receiver
|
||||
android:name=".playback.system.MediaButtonReceiver"
|
||||
|
||||
@@ -1,11 +1,21 @@
|
||||
package org.oxycblt.auxio.playback.system
|
||||
|
||||
/**
|
||||
* Represents the current setting for ReplayGain.
|
||||
*/
|
||||
enum class ReplayGainMode {
|
||||
/** Do not apply ReplayGain. */
|
||||
OFF,
|
||||
/** Apply the track gain, falling back to the album gain if the track gain is not found. */
|
||||
TRACK,
|
||||
/** Apply the album gain, falling back to the track gain if the album gain is not found. */
|
||||
ALBUM,
|
||||
/** Apply the album gain only when playing from an album, defaulting to track gain otherwise. */
|
||||
DYNAMIC;
|
||||
|
||||
/**
|
||||
* Converts this type to an integer constant.
|
||||
*/
|
||||
fun toInt(): Int {
|
||||
return when (this) {
|
||||
OFF -> INT_OFF
|
||||
@@ -21,6 +31,9 @@ enum class ReplayGainMode {
|
||||
private const val INT_ALBUM = 0xA112
|
||||
private const val INT_DYNAMIC = 0xA113
|
||||
|
||||
/**
|
||||
* Converts an integer constant to this type.
|
||||
*/
|
||||
fun fromInt(value: Int): ReplayGainMode? {
|
||||
return when (value) {
|
||||
INT_OFF -> OFF
|
||||
|
||||
@@ -56,7 +56,7 @@ fun Any.logE(msg: String) {
|
||||
private fun Any.getName(): String = "Auxio.${this::class.simpleName ?: "Anonymous Object"}"
|
||||
|
||||
/**
|
||||
* I know that this will not stop you, but consider what you are doing with your life, copycats.
|
||||
* I know that this will not stop you, but consider what you are doing with your life, copiers.
|
||||
* Do you want to live a fulfilling existence on this planet? Or do you want to spend your life
|
||||
* taking work others did and making it objectively worse so you could arbitrage a fraction of a
|
||||
* penny on every AdMob impression you get? You could do so many great things if you simply had
|
||||
|
||||
Reference in New Issue
Block a user