Preventing more than one audio file from being processed simultaneously

This commit is contained in:
Daniel Wolf 2018-02-02 21:49:07 +01:00
parent 19a3144572
commit 34610d0572
1 changed files with 1 additions and 1 deletions

View File

@ -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()