<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body><div><br><br>-----------------------------------<br></div> <div class="mail_content"><div><span style="display:none" disabled=""></span>Hi <div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> I want to play some music on the device(IMX6), So I use QSound of Qt 5.6.2 to make a test project.</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> First, I got the debug : </span><span style="background-color: transparent;"> pa_context_connect() failed. So I use "</span><span style="background-color: transparent;">pulseaudio -vvvv --system</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: transparent;">" to check it (cus this is an embedded device). It circulate in :</span></div><div><br></div><div><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: transparent;">D: [pulseaudio] module-udev-detect.c: /dev/snd/controlC0 is accessible: yes</span></div><div><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: transparent;">D: [pulseaudio] module-udev-detect.c: Resuming all sinks and sources of card alsa_card.platform-sound.</span></div><div><br></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> I have no idea about that whether it works or not. So I quit and "pulseaudio -D --system", it works.</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> However, there is no voice after that by using mplayer/paplay/Qt-QSound. More importantly, the output of paplay is:</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> </span><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> </span><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span><span style="background-color: transparent;">Opening a playback stream with sample specification 's16le 1ch 8000Hz' and channel map 'mono'.</span></div><div><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: transparent;">Connection failure: Access denied</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: transparent;"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> What should I do?</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">Regards</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">Mihan</span></div>
</div></div></body></html>