<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 11.11.2017 13:29, S.C.T.N Gmbh
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:008601d35ae8$aa294420$fe7bcc60$@de">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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;}
/* 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;}
span.E-MailFormatvorlage17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.E-MailFormatvorlage18
{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]-->
<div class="WordSection1">
<p class="MsoNormal"><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>
<o:p></o:p></span></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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">24<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">To define the
right channel:<o:p></o:p></span></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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">25<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">To start sine
on the left:<br>
pactl load-module module-sine sink=left_mono frequency=921<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">26<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">To start sine
on the right:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">pactl
load-module module-sine sink=right_mono frequency=821<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">27<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">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. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Pactl
unload-module <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Both channels
are stopped.<br>
<br>
<br>
<br>
<br>
</span></p>
</div>
</blockquote>
<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>
<blockquote type="cite"
cite="mid:008601d35ae8$aa294420$fe7bcc60$@de">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D"><br>
<br>
<br>
<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 class="moz-txt-link-freetext" 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<o:p></o:p></span></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"">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<o:p></o:p></span></p>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>