Play an audio file with libsndfile
I want to create an app playing an audio file using libsndfile and wasapi, i already play it in the constructor of the class but i can't figure out how to do it when clicking play button and link the audio to a slider to see the progress of the audio and move it to a chosen position.
When we play it using just Qt, we use the QMediaPlayer but how can i do it now with libsndfile ?
If anyone has an idea, i'll apreciate it as a beginner. Thank you!
You will have to write a wrapper class that will interact with libsndfile and your application will use that wrapper class.
@SGaist Is there an example of a wrapper class ? Please!
Qt is full of them, the QtMultimedia backend's are one of many examples you can read.