Some AAC files play too slow with the avcodec plugin
Posted: Sun Mar 13, 2022 1:29 pm
Some AAC files (not all) seem to play around half the speed they should with the avcodec plugin. Would there be something that could be fixed in the plugin? Tested on MorphOS... and MPlayer on MorphOS plays the file at the correct speed.
Here's an example file.
The result from the previous code:
Here's an example file.
Code: Select all
@REQUIRE "avcodec"
OpenMusic(1, "Pinball Illusions 034.aac")
duration = GetAttribute(#MUSIC, 1, #ATTRDURATION)
loader$ = GetAttribute(#MUSIC, 1, #ATTRLOADER)
DebugPrint("Loader:", loader$, "Duration:", duration)
InstallEventHandler({OnMusicEnd = Function() DebugPrint("Actual duration:", GetTimer(1)) EndFunction})
StartTimer(1)
PlayMusic(1)
Repeat
WaitEvent
Forever
Code: Select all
Loader: avcodec Duration: 15585
Actual duration: 31237