mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-23 06:46:02 +00:00
Audio: keep at least 40 ms queued for the DirectAudio relay; logs: Share latest logs
- module-directaudio-sink keeps the relay's ring at least 40 ms deep. The relay starts at 8 ms, which the producer inside proot missed while the client loads (two underruns on the FIT's fresh install, steady stutter reported on another phone). - Setup > Session logs > Share latest logs zips the newest session folder, wherever it was written (Downloads, or app-private files when Downloads is not writable), and opens the share sheet via a FileProvider scoped to that zip.
This commit is contained in:
1 parent
04f40282d2
commit
92f7709a76
6 files changed
+81
No files matched your search
@@ -63,6 +63,10 @@ PA_MODULE_USAGE(
|
||||
#define STATS_EVERY_USEC (30 * PA_USEC_PER_SEC)
|
||||
/* Never queue more than this ahead of the relay's target, whatever it asks for. */
|
||||
#define MAX_AHEAD_MS 250
|
||||
/* Always keep at least this much queued. The relay starts its target at two bursts (8 ms), which
|
||||
* a producer inside proot misses while the client is loading: two underruns in the first seconds
|
||||
* on the FIT, steady stutter on a slower phone. 40 ms of slack costs 40 ms of latency at most. */
|
||||
#define MIN_AHEAD_MS 40
|
||||
|
||||
static const char* const valid_modargs[] = {
|
||||
"socket", "sink_name", "sink_properties", "volume", "performance_mode", "adaptive", NULL
|
||||
@@ -239,6 +243,8 @@ static int service_ring(struct userdata *u) {
|
||||
return -1;
|
||||
}
|
||||
target = (uint32_t) (r->target_frames > 0 ? r->target_frames : 2 * u->burst);
|
||||
if (target < u->ss.rate / 1000 * MIN_AHEAD_MS)
|
||||
target = u->ss.rate / 1000 * MIN_AHEAD_MS;
|
||||
if (target > (uint32_t) (u->ss.rate / 1000 * MAX_AHEAD_MS))
|
||||
target = (uint32_t) (u->ss.rate / 1000 * MAX_AHEAD_MS);
|
||||
avail = da_ring_avail(r);
|
||||
|
||||
Reference in new issue
Block a user