new: add real audio for the whole Chom Bev content
This commit is contained in:
@@ -55,3 +55,7 @@ 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 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)",
|
"Stad a vuhez (2)",
|
||||||
"Lec'hiiñ",
|
"Lec'hiiñ",
|
||||||
).mapIndexed { index, title ->
|
).mapIndexed { index, title ->
|
||||||
|
val number = index + 1
|
||||||
Record(
|
Record(
|
||||||
index = index + 1,
|
index = number,
|
||||||
title = title,
|
title = title,
|
||||||
audioResourcePath = "files/$title.ogg",
|
audioResourcePath = "files/Chom_bev_${number.toString().padStart(2, '0')}.m4a",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ fun RecordView(
|
|||||||
@Composable
|
@Composable
|
||||||
private fun RecordViewPreview() {
|
private fun RecordViewPreview() {
|
||||||
RecordView(
|
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 = {},
|
onClick = {},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user