diff --git a/README.md b/README.md index c27c3a8..d181933 100644 --- a/README.md +++ b/README.md @@ -54,4 +54,8 @@ please refer to the [Koin Compose documentation](https://insert-koin.io/docs/ref For navigation, Navigation3 is used: https://kotlinlang.org/docs/multiplatform/compose-navigation-3.html -For implementation details, please refer to the [Navigation3 Android documentation](https://developer.android.com/guide/navigation/navigation-3/basics). \ No newline at end of file +For implementation details, please refer to the [Navigation3 Android documentation](https://developer.android.com/guide/navigation/navigation-3/basics). + +## Audio + +OGG Vorbis is not correctly supported on iOS. Prefer M4A+AAC instead. For instance, audio duration is shorter on iOS with OGG. Therefore, subtitles are not correctly synchronized. \ No newline at end of file diff --git a/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/records/data/InMemoryRecordRepository.kt b/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/records/data/InMemoryRecordRepository.kt index e9856d8..e30e54a 100644 --- a/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/records/data/InMemoryRecordRepository.kt +++ b/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/records/data/InMemoryRecordRepository.kt @@ -32,10 +32,11 @@ class InMemoryRecordRepository : RecordRepository { "Stad a vuhez (2)", "Lec'hiiƱ", ).mapIndexed { index, title -> + val number = index + 1 Record( - index = index + 1, + index = number, title = title, - audioResourcePath = "files/$title.ogg", + audioResourcePath = "files/Chom_bev_${number.toString().padStart(2, '0')}.m4a", ) } diff --git a/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/records/ui/RecordView.kt b/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/records/ui/RecordView.kt index 85f1d47..61f5853 100644 --- a/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/records/ui/RecordView.kt +++ b/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/records/ui/RecordView.kt @@ -40,7 +40,7 @@ fun RecordView( @Composable private fun RecordViewPreview() { RecordView( - record = Record(index = 1, title = "Sample Record", audioResourcePath = "files/An onestiz.ogg"), + record = Record(index = 1, title = "Sample Record", audioResourcePath = "files/Chom_bev_01.ogg"), onClick = {}, ) }