Unsolved Unable to play a wav file with Audio component
-
Are you sure that the plugin you modified was installed at the right location ?
-
Yes.
It was installed under
/usr/lib/qt5/plugins/audio
-
On your target ?
-
Yes, of course.
-
How big is your audio file ?
-
~11 MB.
Would you test it ?
I have recompiled QtMultimedia without ALSA support and with PULSEAUDIO only.
In
/usr/lib/qt5/plugins/audio
I have onlylibqtmedia_pulse.so
Same thing when I launch my app again. libqtmedia_pulse.so plugin is loaded , and I have the same output as the one above...
It really seems that something is wrecked under...
-
I likely would (and already would have done it) but I don't have such a board at hand.
And Rulseaudio is also working correctly ? (Without using Qt)
-
How can I test if pulseaudio is working fine ?
-
I'd take a look at thist to check the setup.
-
@zyend - I know the topic is quite old, but could it be a simple explanation of a typo ?
You have called the Audio component:
id: audioPlayer
and then try to play with:
idPlayer.play()
I think it should be:
audioPlayer.play()Maybe I am reading the post wrong.
-
@zyend
Although this is an old post, I ended up here Googling for the pulse audio initialization and someone else might do so too so here's important info for the solution of the problem.
I too ran into issue that pulseaudio was no longer running since theQAudioDeviceInfo::availableDevices(QAudio::AudioOutput)
had been dropped from the code. This call apparently starts pulseaudio daemon (among other things).
Returning it back fixed the issue. -
@OttoRyynanen Hi and welcome to devnet,
Thanks for sharing your findings !