Preventing more than one audio file from being processed simultaneously
This commit is contained in:
parent
19a3144572
commit
34610d0572
|
@ -50,10 +50,10 @@ class AnimationFileModel(animationFilePath: Path) {
|
|||
var mouthShapesError by mouthShapesErrorProperty
|
||||
private set
|
||||
|
||||
private val executor = Executors.newSingleThreadExecutor()
|
||||
val audioFileModelsProperty = SimpleListProperty<AudioFileModel>(
|
||||
spineJson.audioEvents
|
||||
.map { event ->
|
||||
val executor = Executors.newSingleThreadExecutor()
|
||||
AudioFileModel(event, this, executor, { result -> saveAnimation(result, event.name) })
|
||||
}
|
||||
.observable()
|
||||
|
|
Loading…
Reference in New Issue