<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<div class="moz-cite-prefix">On 09.05.20 06:08, <a class="moz-txt-link-abbreviated" href="mailto:limh@sunray.cn">limh@sunray.cn</a>
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:2020050912084400592339@sunray.cn%3E+98EAF799A96EB5B8">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style>
<div><span></span>Hi </div>
<div><br>
</div>
<div>I so sorry that I sent a lot of mails these days. Now I
summarize all the problems in this mail.</div>
<div><br>
</div>
<div>Device: IMX6DL </div>
<div>Kernel: 4.1.15</div>
<div>Environment: pulseaudio 8.0, alsa( alsactl -v : 1.1.0)</div>
<div><br>
</div>
<div>Reason: </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>I
used "mplayer" to play audio file in "system()" before (didn't
open pulseaudio). </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>I
want to optimized that so I use Qt function(based on
pulseaudio).</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>After
I changed configuration to let the pulseaudio start when the
system startup and I play audio with Qt, I found the volume was
mismatch when I changed it in Qt function</div>
<div><span style="color: rgb(0, 0, 0); background-color: rgba(0,
0, 0, 0);"> (*QSoundEffect::setVolume(), range:0.0 ~ 1.0,
if volume is bigger than 0.1, the voice would be biggest)</span></div>
<div><span style="color: rgb(0, 0, 0); background-color: rgba(0,
0, 0, 0);"> So I used "mplayer -af volume=[-20, -10, 0, 10]
XXX.wav" to test again, then I found if the volume is bigger
than -10, the voice would be biggest.</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);"> I can</span><span style="font-family:
'Microsoft YaHei UI', Tahoma; line-height: normal; font-size:
10.5pt; background-color: transparent;"> attach the output of
"paplay -v test.wav",but "</span><span style="font-family:
'Microsoft YaHei UI', Tahoma; line-height: normal;">aplay
-Dplughw:0,0 test.wav</span><span style="font-family:
'Microsoft YaHei UI', Tahoma; line-height: normal; font-size:
10.5pt; background-color: transparent;">" just has a short
"bit" voice either pulseaudio is opened or not.</span></div>
<div><span style="color: rgb(0, 0, 0); background-color: rgba(0,
0, 0, 0);"><br>
</span></div>
<div>I hope you can give me a hand again</div>
<div><span style="color: rgb(0, 0, 0); background-color: rgba(0,
0, 0, 0);">PS: I also send a mail to alsa-user, you can follow
it : </span><span style="background-color: transparent;"><a class="moz-txt-link-freetext" href="https://sourceforge.net/p/alsa/mailman/message/37005410/">https://sourceforge.net/p/alsa/mailman/message/37005410/</a></span></div>
<div><br>
</div>
<hr style="width: 210px; height: 1px;" size="1" color="#b5c4df"
align="left">
<div><span>
<div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE:
10pt">
<div><span style="font-size: 10pt; line-height: 1.5;
background-color: transparent;">Best Regards</span></div>
<div><span style="font-size: 10pt; line-height: 1.5;
background-color: transparent;">Mihan</span></div>
</div>
</span></div>
</blockquote>
<p>You should upgrade your software stack. Pulseaudio 8 is already 4
years old and the kernel is even older.</p>
<p>Regards<br>
Georg<br>
</p>
</body>
</html>