My Anki (2.1.49) has just this week started clipping the end of playback on sound files.
It doesn’t happen to all sound files – maybe 10-20%. And it appears to happen on the first automatic play. If I subsequently click the play button the file normally plays in its entirety (but confusingly, not always- sometimes it takes 2/3 plays).
I’m at a loss as to explain it. I’ve not changed Anki in any way, my computer is new (2021 Macbook Air) and shouldn’t be slow in processing etc. etc.
It might be a bit easier to do it using the debug console to write and apply new settings without restarting Anki.
import os
from aqt import mw
from aqt.sound import mpvManager
# write new settings
with open(os.path.join(mw.pm.base, 'mpv.conf'), 'a') as f:
f.write('af=lavfi=[apad=pad_dur=0.5]\n')
# restart mpv
mpvManager.shutdown()
print('[af]', mpvManager.get_property('af'))