Note: I have also tried this in 4.18 Preview 4 with same results.
When I use either “Open File” or a “File Media Source” to play an mp3 with the mediaplayer the audio will cut out half a second early at the end.
I’ve also noticed the first bit of audio sounds choppy or as if the first half second is repeated twice. This makes me think it’s adding something extra at the beginning and cutting something at the end keeping the same length but breaking it somehow.
This happens in game or in the preview of the mediaplayer or when just using UGameplayStatics::PlaySoundAtLocation in c++.
I was able to repro these. The crackles that tend to happen randomly at the beginning are audio buffer underruns. It seems to be less of a problem in Shipping builds. The audio cutting out too early is a discrepancy between UE4’s audio clock and Windows Media Foundation’s player clock. I don’t have a solution yet for either problem, but I will investigate. We are tracking this under UE-51475.