trying to add audio playing

This commit is contained in:
Chris Cochrun 2024-12-11 16:14:31 -06:00
parent 3ddcbfdc10
commit 67b19fe214
5 changed files with 453 additions and 3 deletions

View file

@ -217,6 +217,10 @@ impl Slide {
self.video_loop
}
pub fn audio(&self) -> Option<PathBuf> {
self.audio.clone()
}
pub fn song_slides(song: &Song) -> Result<Vec<Self>> {
let lyrics = song.get_lyrics()?;
let slides: Vec<Slide> = lyrics