new: add real audio for the whole Chom Bev content

This commit is contained in:
2026-06-19 10:39:12 +02:00
parent 03b3ab1965
commit 4b7e74f3c6
3 changed files with 9 additions and 4 deletions
+5 -1
View File
@@ -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).
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.
@@ -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",
)
}
@@ -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 = {},
)
}