[pulseaudio-discuss] sink creation initialization timings

guest271314 guest271314 at gmail.com
Sun Dec 27 15:41:08 UTC 2020


> because it seems the master sink does not exist at the time the remap is
being done (only the null sink exists I think).

> How can I delay the remap creation till this sink is created?

I do not gather this part of the email completely.

I am running a live session right now so cannot test the reboot part. I
have had to re-set the default sink occasionally after I run this code
https://github.com/guest271314/SpeechSynthesisRecorder/issues/17#issuecomment-749875748
.

On Sun, Dec 27, 2020 at 6:22 AM David Osguthorpe <david.osguthorpe at gmail.com>
wrote:

> Im trying to remap a 4 channel hardware alsa pcm device to change the
> channel order.
> Ive created a default.pa file in ~/.config/pulse which performs the remap
> and sets the new sink as the default sink.
>
> Under Ubuntu 20.04 this all works fine if I stop the pulseaudio daemon as
> a user (under 20.04 by default the pulseaudio daemon is a user process) and
> restart it.
>
> If I reboot this fails - the log has 3 messages, master sink not found,
> remap failed to initialize and sink does not exist - because it seems the
> master sink does not exist at the time the remap is being done (only the
> null sink exists I think).
> The log shows that the sink I want as master is only created much later by
> a some black box process to me - which also appears to be creating a lot of
> other surround sinks.
>
> I should note that before updating the default.pa file after I login and
> run pacmd list-sinks there is only 1 sink which is the surround-40 sink
> which is the original master sink I want to remap.
>
> How can I delay the remap creation till this sink is created?
>
> How are the raw Alsa hardware kernel pcm devices mapped into pulse?
>
> Thanks
> _______________________________________________
> 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/20201227/3deba724/attachment.htm>


More information about the pulseaudio-discuss mailing list