<div dir="ltr"><div>> because it seems the master sink does not exist at the time the remap is being done (only the null sink exists I think).</div><div><br></div>> How can I delay the remap creation till this sink is created?<div> </div><div>I do not gather this part of the email completely. </div><div><br></div><div>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 <a href="https://github.com/guest271314/SpeechSynthesisRecorder/issues/17#issuecomment-749875748">https://github.com/guest271314/SpeechSynthesisRecorder/issues/17#issuecomment-749875748</a>.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 27, 2020 at 6:22 AM David Osguthorpe <<a href="mailto:david.osguthorpe@gmail.com">david.osguthorpe@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Im trying to remap a 4 channel hardware alsa pcm device to change the channel order.<div>Ive created a <a href="http://default.pa" target="_blank">default.pa</a> file in ~/.config/pulse which performs the remap and sets the new sink as the default sink.</div><div><br></div><div>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.</div><div><br></div><div>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).</div><div>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.</div><div><br></div><div>I should note that before updating the <a href="http://default.pa" target="_blank">default.pa</a> 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.</div><div><br></div><div>How can I delay the remap creation till this sink is created?</div><div><br></div><div>How are the raw Alsa hardware kernel pcm devices mapped into pulse?</div><div><br></div><div>Thanks</div></div>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@lists.freedesktop.org" target="_blank">pulseaudio-discuss@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss</a><br>
</blockquote></div>