This repository has been archived by the owner on Mar 30, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove tremolo (Android’s decoder is stabler), implement crossfade sl…
…ider Signed-off-by: iTaysonLab <[email protected]>
- Loading branch information
1 parent
c9e617d
commit 9682681
Showing
11 changed files
with
90 additions
and
242 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
app/src/main/java/bruhcollective/itaysonlab/jetispot/SpApp.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,15 @@ | ||
package bruhcollective.itaysonlab.jetispot | ||
|
||
import android.app.Application | ||
import android.os.Build | ||
import bruhcollective.itaysonlab.jetispot.core.SpConfigurationManager | ||
import bruhcollective.itaysonlab.jetispot.core.SpSessionManager | ||
import bruhcollective.itaysonlab.jetispot.playback.sp.AndroidNativeDecoder | ||
import bruhcollective.itaysonlab.jetispot.playback.sp.TremoloVorbisDecoder | ||
import dagger.hilt.android.HiltAndroidApp | ||
import xyz.gianlu.librespot.audio.decoders.Decoders | ||
import xyz.gianlu.librespot.audio.format.SuperAudioFormat | ||
import javax.inject.Inject | ||
|
||
@HiltAndroidApp | ||
class SpApp: Application() { | ||
@Inject lateinit var spConfigurationManager: SpConfigurationManager | ||
|
||
init { | ||
Decoders.registerDecoder(SuperAudioFormat.VORBIS, AndroidNativeDecoder::class.java) | ||
Decoders.registerDecoder(SuperAudioFormat.MP3, AndroidNativeDecoder::class.java) | ||
if (isArm()) Decoders.registerDecoder(SuperAudioFormat.VORBIS, 0, TremoloVorbisDecoder::class.java) | ||
} | ||
|
||
private fun isArm() = Build.SUPPORTED_ABIS.firstOrNull { it.contains("arm") } != null | ||
} |
65 changes: 0 additions & 65 deletions
65
app/src/main/java/bruhcollective/itaysonlab/jetispot/playback/sp/TremoloVorbisDecoder.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
136 changes: 0 additions & 136 deletions
136
app/src/main/java/xyz/gianlu/librespot/player/decoders/tremolo/OggDecodingInputStream.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.