<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Times New Roman \, serif";
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";
color:black;}
span.E-MailFormatvorlage20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.E-MailFormatvorlage21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage23
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Yes I can confirm that:<br><br>Pactl unload-module <index> <br>stops the sine output on both channels. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>But in<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>pactl list modules short<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>the module<index> has disappeared while the other module-sine is still there.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Could it be related to t he other modules that are loaded after boot? Here is a list of all modules that are loaded in my case by default:<br><br>pi@TEST:~ $ pactl list modules short<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>0 module-device-restore<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>1 module-stream-restore<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>2 module-card-restore<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>3 module-augment-properties<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>4 module-switch-on-port-available<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>5 module-udev-detect<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>6 module-alsa-card device_id="0" name="platform-soc_audio" card_name="alsa_card.platform-soc_audio" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>7 module-native-protocol-unix<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>8 module-default-device-restore<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>9 module-rescue-streams<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>10 module-always-sink<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>11 module-intended-roles<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>12 module-suspend-on-idle<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>13 module-console-kit<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>14 module-systemd-login<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>15 module-position-event-sounds<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>16 module-role-cork<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>17 module-filter-heuristics<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>18 module-filter-apply<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Annother hitch is that it takes quite an amount of time after unloading before module-sine can be reloaded again (roughly 10secs).<br>Is there any flag or indication that the unloading has completed so that the module can be reloaded again?<br><br>Kind regards<br><br><br></span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Georg Chini [<a href="mailto:georg@chini.tk">mailto:georg@chini.tk</a>] <br><b>Gesendet:</b> Samstag, 11. November 2017 13:37<br><b>An:</b> S.C.T.N Gmbh<br><b>Cc:</b> General PulseAudio Discussion<br><b>Betreff:</b> Re: AW: [pulseaudio-discuss] module-sine for generating two independent sine wave signals on the left and right output of a sound device<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On 11.11.2017 13:29, S.C.T.N Gmbh wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal style='margin-bottom:12.0pt'><span style='color:#1F497D'>Perfect, it works. Thank you a lot.<br><br>Only one problem remains: I don’t know how to stop the two modules-sine independently:<br><br>I use:<br><br></span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>To define the left channel:<br>pactl load-module module-remap-sink sink_name=left_mono master=alsa_output.platform-soc_audio.analog-stereo channels=1 master_channel_map=front-left channel_map=front-left remix=no</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>24</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>To define the right channel:</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>pactl load-module module-remap-sink sink_name=right_mono master=alsa_output.platform-soc_audio.analog-stereo channels=1 master_channel_map=front-right channel_map=front-right remix=no</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>25</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>To start sine on the left:<br>pactl load-module module-sine sink=left_mono frequency=921</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>26</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>To start sine on the right:</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>pactl load-module module-sine sink=right_mono frequency=821</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>27</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>I dont know how to stop one of the module-sine while leaving the other one on.<br><br>The CLI says to specify a module index or a module name. I suppose the index ist he number that is displayed after entering the command? (In the above example 26,27)<br><br>But when I use e.g. </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Pactl unload-module </span><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='color:#1F497D'>Both channels are stopped.<br><br><br></span><o:p></o:p></p></blockquote><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br>I added the list again. Yes, using the module index like "pactl unload-module 26" should unload<br>only the single sine module. If you use the name, all instances of the module are unloaded.<br>Doesn't that work for you? That would be a bug.<br>You can also see the module index with "pactl list modules short". <br><br><o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='color:#1F497D'><br><br><br></span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Georg Chini [<a href="mailto:georg@chini.tk">mailto:georg@chini.tk</a>] <br><b>Gesendet:</b> Samstag, 11. November 2017 12:32<br><b>An:</b> General PulseAudio Discussion; S.C.T.N Gmbh<br><b>Betreff:</b> Re: [pulseaudio-discuss] module-sine for generating two independent sine wave signals on the left and right output of a sound device</span><o:p></o:p></p></div></div><p class=MsoNormal> <o:p></o:p></p><div><p class=MsoNormal>On 11.11.2017 09:50, S.C.T.N Gmbh wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>I want to use MODULE-SINE to produce two independent sine wave signals with different frequencies on the left and right output of a sound card:<br><br>By using :<br><br>pactl load-module module-sine frequency=1000 <br><br>I get of course the same 1000Hz signal on both channels and<br><br>pactl unload-module module-sine stops both of them.<br><br>So the question is whether there is a configuration to start and stop left and right channel independently and to run them with different frequencies?<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Thank you in advance<br><br>Sporex<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman , serif","serif"'>You can use module-remap-sink to create independent sinks for each channel.<br>Then you can use module-sine on the remapped sinks.<br><br>Regards<br> Georg</span><o:p></o:p></p><p><o:p> </o:p></p></div></body></html>