stream: add more timing info

Keep track of queued data in the stream
Pass delay field around to make it possible to know about the raw
software read/write pointer and the hardware one.
Start stream position at 0
This commit is contained in:
Wim Taymans 2018-07-19 13:30:27 +02:00
parent d3c203b744
commit 0d148654c0
8 changed files with 72 additions and 21 deletions

View file

@ -771,10 +771,10 @@ static int impl_node_process(struct spa_node *node)
{
struct node *this = SPA_CONTAINER_OF(node, struct node, node);
struct impl *impl = this->impl;
struct pw_driver_quantum *q = impl->this.node->driver_node->rt.quantum;
int status, trigger;
impl->ctrl.min_size = impl->ctrl.max_size =
impl->this.node->driver_node->rt.quantum->size * sizeof(float);
impl->ctrl.min_size = impl->ctrl.max_size = q->size * sizeof(float);
spa_log_trace(this->log, "%p: process %d", this, impl->ctrl.max_size);