Re-opened issue #43 to improve the music adding process. Added TODO to pick up on later
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user