Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

How to resample the audio #33

Closed
sangshengjie opened this issue Jun 21, 2017 · 2 comments
Closed

How to resample the audio #33

sangshengjie opened this issue Jun 21, 2017 · 2 comments

Comments

@sangshengjie
Copy link

Does the MediaPlayer support resample audio(44100hz ...) to play?
My device only support 44100 sampling rate, how can I resample the audio?

@knikhila
Copy link
Contributor

Hello @sangshengjie,

In order to resample to a specific frequency, you will have to modify the source code in MediaPlayer.cpp.
You can add an audioresample element between the converter and the autoaudiosink.
Please refer to the below link:
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-audioresample.html.

Thanks,
Nikhila

@sangshengjie
Copy link
Author

@knikhila

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants