QML audio player
-
Hi everybody,
i'm currently working on a big project fully in QML and i'm stuck at the moment . i need to integrate an audio player (so play sound , record, select audio input and audio output, show a wave for the sound) inside my QML application.
I don't find any exemple doing that . Only QT application.Do you know how can i do it ?
Thank you.
-
Hi everybody,
i'm currently working on a big project fully in QML and i'm stuck at the moment . i need to integrate an audio player (so play sound , record, select audio input and audio output, show a wave for the sound) inside my QML application.
I don't find any exemple doing that . Only QT application.Do you know how can i do it ?
Thank you.
-
It seems like what you want to achieve is a video sampler, not a simple player. Sampling is a little bit more complicated than simply playing back sounds.
Here are a few links that might be useful:
- https://forum.qt.io/topic/13859/how-to-record-and-play-an-audio-file-in-qml
- https://stackoverflow.com/questions/9223528/how-to-record-an-audio-and-play-in-qml
(there might be no recording interface in QML - you might have to implement the backend in C++)
-
Thank you for these links i'll check it . I don't want a video player , just audio.
Am i really forced to go c++ for backend ?
I remember that there is a audio player in the qt multimedia example . that can play, register audio and select input and output (audio, not a file ) -
http://doc.qt.io/qt-5/qml-qtmultimedia-audio.html
I'm using this for playing sound and it's working . there is no problem but i want to do a little scrol down menu where i can choose the audio output , i'm sorry if it wasn't clear .
So for example i put a headphone on my computer i want to do a scroll down menu where i can choose where the audio output goes.And also , i didn't find how to record sound with this component . did a miss something ?
Thank you for all
-
From the looks of it, you may have to implement these control yourself and implement a wrapper for the corresponding C++ classes.