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
|
var mouthShapesError by mouthShapesErrorProperty
|
||||||
private set
|
private set
|
||||||
|
|
||||||
|
private val executor = Executors.newSingleThreadExecutor()
|
||||||
val audioFileModelsProperty = SimpleListProperty<AudioFileModel>(
|
val audioFileModelsProperty = SimpleListProperty<AudioFileModel>(
|
||||||
spineJson.audioEvents
|
spineJson.audioEvents
|
||||||
.map { event ->
|
.map { event ->
|
||||||
val executor = Executors.newSingleThreadExecutor()
|
|
||||||
AudioFileModel(event, this, executor, { result -> saveAnimation(result, event.name) })
|
AudioFileModel(event, this, executor, { result -> saveAnimation(result, event.name) })
|
||||||
}
|
}
|
||||||
.observable()
|
.observable()
|
||||||
|
|
Loading…
Reference in New Issue