madmaxoft / SkauTan

Music player for Skautské Tancování
https://skautske-tancovani.cz/
The Unlicense
1 stars 2 forks source link

Refactor song decoder #228

Closed madmaxoft closed 5 years ago

madmaxoft commented 5 years ago

Refactor the song decoder code to return the fully decoded buffer, rather than "streaming into" a buffer.

At the same time, check why Dj Maksy & Sia - My Love decodes only the first minute, rather than the entire song.

madmaxoft commented 5 years ago

Closing - the decoding takes two seconds on a fast computer, would be too slow for slow computers.

Decoding partial songs fixed - ignoring the errors from avcodec_send_packet.