new: add real audio for the whole Chom Bev content
This commit is contained in:
@@ -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.
|
||||
+3
-2
@@ -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 = {},
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user