[pulseaudio-discuss] WG: AW: module-sine for generating two independent sine wave signals on the left and right output of a sound device
Georg Chini
georg at chini.tk
Sat Nov 11 14:27:05 UTC 2017
On 11.11.2017 14:58, S.C.T.N Gmbh wrote:
please don't top post on that list.
> Yes I can confirm that:
>
> Pactl unload-module <index>
> stops the sine output on both channels.
>
> But in
>
> pactl list modules short
>
> the module<index> has disappeared while the other module-sine is still
> there.
>
This definitely should not happen. I'll investigate and see if I can
reproduce the issue.
> 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:
>
> pi at TEST:~ $ pactl list modules short
>
> 0 module-device-restore
>
> 1 module-stream-restore
>
> 2 module-card-restore
>
> 3 module-augment-properties
>
> 4 module-switch-on-port-available
>
> 5 module-udev-detect
>
> 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"
>
> 7 module-native-protocol-unix
>
> 8 module-default-device-restore
>
> 9 module-rescue-streams
>
> 10 module-always-sink
>
> 11 module-intended-roles
>
> 12 module-suspend-on-idle
>
> 13 module-console-kit
>
> 14 module-systemd-login
>
> 15 module-position-event-sounds
>
> 16 module-role-cork
>
> 17 module-filter-heuristics
>
> 18 module-filter-apply
>
> Annother hitch is that it takes quite an amount of time after
> unloading before module-sine can be reloaded again (roughly 10secs).
>
This also sounds weird. Same comment as above.
> Is there any flag or indication that the unloading has completed so
> that the module can be reloaded again?
>
> Kind regards
> *Von:*Georg Chini [mailto:georg at chini.tk]
> *Gesendet:* Samstag, 11. November 2017 12:32
> *An:* General PulseAudio Discussion; S.C.T.N Gmbh
> *Betreff:* Re: [pulseaudio-discuss] module-sine for generating two
> independent sine wave signals on the left and right output of a sound
> device
>
> On 11.11.2017 09:50, S.C.T.N Gmbh wrote:
>
> 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:
>
> By using :
>
> pactl load-module module-sine frequency=1000
>
> I get of course the same 1000Hz signal on both channels and
>
> pactl unload-module module-sine stops both of them.
>
> 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?
>
> Thank you in advance
>
> Sporex
>
> You can use module-remap-sink to create independent sinks for each
> channel.
> Then you can use module-sine on the remapped sinks.
>
> Regards
> Georg
>
>
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20171111/f6056da5/attachment-0001.html>
More information about the pulseaudio-discuss
mailing list