mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Reset playback errors when restarting, dont allow selecting ultra voices if not in beta
This commit is contained in:
parent
63d39c9a44
commit
bf160cdd86
2 changed files with 3 additions and 1 deletions
|
|
@ -46,7 +46,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
if audioController.useUltraRealisticVoices {
|
||||
if viewModel.realisticVoicesToggle, !audioController.ultraRealisticFeatureKey.isEmpty {
|
||||
if showLanguageChanger {
|
||||
Section("Language") {
|
||||
NavigationLink(destination: TextToSpeechLanguageView().navigationTitle("Language")) {
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@
|
|||
public func play(itemAudioProperties: LinkedItemAudioProperties) {
|
||||
stop()
|
||||
|
||||
playbackError = false
|
||||
self.itemAudioProperties = itemAudioProperties
|
||||
startAudio(atIndex: itemAudioProperties.startIndex, andOffset: itemAudioProperties.startOffset)
|
||||
|
||||
|
|
@ -356,6 +357,7 @@
|
|||
currentOffset = CMTimeGetSeconds(player.currentTime())
|
||||
}
|
||||
player?.removeAllItems()
|
||||
playbackError = false
|
||||
|
||||
downloadAndPlayFrom(currentIdx, currentOffset)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue