Bug 54006 - [cleanup] When lowering sink latency, the core could request a rewind
[cleanup] When lowering sink latency, the core could request a rewind
Status: NEW
Product: PulseAudio
Classification: Unclassified
Component: core
unspecified
Other All
: medium enhancement
Assigned To: pulseaudio-bugs
pulseaudio-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-24 13:34 UTC by Tanu Kaskinen
Modified: 2012-08-24 13:34 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tanu Kaskinen 2012-08-24 13:34:34 UTC
If a sink supports dynamic latency and the latency is adjusted downwards, there needs to be a rewind to ensure that the sink buffer doesn't contain more data than what is allowed by the new latency. This is because rewind requests can't be larger than the configured latency, and if there's more data than that in the buffer, a later rewind request may end up being too small.

The responsibility for issuing the rewind request is currently on the sink implementor. I don't think that's necessary, so I think it would be better to issue the rewind request in the core code.