jack: Improve transport BBT handling

The bar can start from 0 in JACK.

Add bar_start_tick and ticks_per_beat to the io_segment_bar so that we
can losslesly store the complete jack BBT values.

See #4314
This commit is contained in:
Wim Taymans 2024-09-24 18:43:33 +02:00
parent b34a97017d
commit 5bed12569d
2 changed files with 32 additions and 27 deletions

View file

@ -191,7 +191,9 @@ struct spa_io_segment_bar {
float signature_denom; /**< time signature denominator */
double bpm; /**< beats per minute */
double beat; /**< current beat in segment */
uint32_t padding[8];
double bar_start_tick;
double ticks_per_beat;
uint32_t padding[4];
};
/** video frame segment */