Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ class SourceAudioAccessor(

val oratureAudioFile = OratureAudioFile(file)
val size = oratureAudioFile.totalFrames

if (size == 0) return null

SourceAudio(file, 0, size)
} else {
null
Expand All @@ -142,6 +145,9 @@ class SourceAudioAccessor(
val nextMarker = if (chunks.lastIndex > markerIndex) chunks[markerIndex + 1] else null
val start = marker.location
val end = nextMarker?.location ?: oratureAudioFile.totalFrames

if (end - start == 0) return null

return SourceAudio(file, start, end)
}
}
Expand All @@ -161,6 +167,9 @@ class SourceAudioAccessor(
val nextMarker = if (verses.lastIndex > markerIndex) verses[markerIndex + 1] else null
val start = marker.location
val end = nextMarker?.location ?: oratureAudioFile.totalFrames

if (end - start == 0) return null

return SourceAudio(file, start, end)
}
}
Expand Down
Loading