-
Notifications
You must be signed in to change notification settings - Fork 65
Record replay audio #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Record replay audio #252
Changes from all commits
ebfd9ef
191d61d
215891c
cb9135d
fc58831
f02ebe6
96d30e2
bfb3453
eb150c3
114f47b
3af1e94
99c7cba
08a61ed
d4d6eb4
ba9714f
bce1063
7937907
94ab524
bb1484d
b8f1f8e
b7df0ee
b9538d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| [program:pulseaudio] | ||
| command=/bin/bash -lc '/usr/local/bin/start-pulseaudio.sh' | ||
| autostart=false | ||
| autorestart=true | ||
| startsecs=0 | ||
| exitcodes=0 | ||
| stdout_logfile=/var/log/supervisord/pulseaudio | ||
| redirect_stderr=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,9 @@ const ( | |
| dbusSocket = "/run/dbus/system_bus_socket" | ||
| defaultDisplay = ":1" | ||
| defaultIntPort = "9223" | ||
| // pulseSocket must match the socket path created in shared/start-pulseaudio.sh | ||
| // (the authority for the audio topology); the wrapper only waits on it here. | ||
| pulseSocket = "/tmp/pulse/native" | ||
| ) | ||
|
|
||
| type profile int | ||
|
|
@@ -172,11 +175,13 @@ func main() { | |
| _ = os.WriteFile(filepath.Join(supervisordLogD, "chromium"), nil, 0o644) | ||
|
|
||
| browserStart := time.Now() | ||
| startAll(xServer, "dbus", "chromedriver", "chromium") | ||
| startAll(xServer, "dbus", "chromedriver", "pulseaudio") | ||
| waitForX(defaultDisplay, 20*time.Second) | ||
| if prof == profileHeadful { | ||
| startAll("mutter") | ||
| } | ||
| waitForSocket(pulseSocket, 10*time.Second) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious how long this adds in terms of the startup time - not that it matters with fork
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Measured on a cold headful boot (v6 image): the pulse socket ( |
||
| startAll("chromium") | ||
|
cursor[bot] marked this conversation as resolved.
|
||
| waitForSocket(dbusSocket, 10*time.Second) | ||
| if prof == profileHeadful && webrtc { | ||
| startAll("neko") | ||
|
|
@@ -223,12 +228,6 @@ func main() { | |
| identityDone.Sub(identityStart).Truncate(time.Millisecond), | ||
| formatProbeDurations(probeDurations)) | ||
|
|
||
| // Cosmetic + non-critical services come up off the hot path. Headless has | ||
| // no audio stack. | ||
| if prof == profileHeadful { | ||
| go startAll("pulseaudio") | ||
| } | ||
|
|
||
| // Re-enable scale-to-zero now that the hot path is up — unless the caller | ||
| // asked to keep it disabled via ENABLE_STZ=false/0. | ||
| if stzManaged { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.