I have an image built for Colibri T20 with Yocto Poky Morty and necessary tegra layers.
I have also gstreamer 1.0 with all necessary plugins.
I’m now experiencing weird playback issues with an example WAV file (rec in 44100) and MP3 file.
As I try to launch it with gstreamer, the playback sound a little bit slower than expected.
I thought that maybe my gstreamer config was screwed.
So I tried to play the WAV file with alsa tool aplay.
And it sounds the same, that is a little bit slower.
Therefore I was wondering if I had to change settings in some config file.
I didn’t find much resources for the Colibri T20 and it sound processor.
Could it be related to the rate of the file and the rate of the device ?
Thanks for your feedback.
Karim
PS: I have performed the same test with a fresh LXDE image and aplay: same result.
You’re right. Using the audioresample plugin can fix this issue.
I have tested it successfully in command line.
The problem is, I’m using Qt5.7 and the QMultimedia framework and I don’ know how it’s possible to force the use of this plugin…as this layer is abstracted by Qt.
We do not have Qt expertise. However, for wav playback the QAudioOutput class might me more appropriate. One can pass a QAudioFormat object which allows setting the sample rate while initialising the QAudioOutput class object.