Compensate for bluetooth latency #1454
Replies: 1 comment
-
That definitely makes sense. I assume with "compensation" you mean effectively that the cursor and advertised "play position" are adjusted with this given latency? If the Techncially I think it makes sense to extend this event: Instead of just passing on the number of samples played, it could pass on a structure containing samples and latency. class SamplesPlayedEventArgs {
public samplesPlayed:number;
public outputLatency:number;
} Then in the main synth the latency has to be handled: I'd have to also fiddle a bit around to see where exactly the latency should be respected to not break anything on the synthesizer itself. We might need to add new properties to differenciate the "synthesizing" time line and the "heard" timeline.
I added #1455 as work item to track this feature and added some thoughts there. . |
Beta Was this translation helpful? Give feedback.
-
Hey,
I would (personally) love if alphaTab would/could compensate for bluetooth latency - in the browser this can be discovered via AudioContext.outputLatency.
Would this something you would be interested in/willing to support?
If so, and if you could give me a pointer of where a good spot for that might be I'd gladly try my hand at adding support for it
Beta Was this translation helpful? Give feedback.
All reactions