Re-opened issue #43 to improve the music adding process. Added TODO to pick up on later

This commit is contained in:
amazing-username
2019-04-18 19:03:57 -04:00
parent ded051b812
commit 66a14edbce
@@ -86,15 +86,17 @@ class TrackManager(var allSongPath: MutableList<String>) {
if (remainder > 10) { if (remainder > 10) {
// TODO: implement coroutine to add music using the addRanges function // TODO: implement coroutine to add music using the addRanges function
// to get ranges of music to add for each coroutine // to get ranges of music to add for each coroutine
val rangeAmount = remainder / 10
} }
} }
private fun addRanges(): MutableList<AddMusicRange> { private fun addRanges(rangeAmount: Int): MutableList<AddMusicRange> {
// TODO: implement setting up ranges to split up searching music to add // TODO: implement setting up ranges to split up searching music to add
var ranges = mutableListOf<AddMusicRange>() var ranges = mutableListOf<AddMusicRange>()
try { try {
var rangeCounter = 0
//whie (songIndex!! <)
} }
catch (ex: Exception) { catch (ex: Exception) {
val exMsg = ex.message val exMsg = ex.message