Repository navigation
add timebase master example - #19
Vampouille wants to merge 4 commits into
Conversation
|
That's great, thank you! I think this helps a lot to understand how the timebase callback is supposed to work. Just for reference, there is a similar example in the JACK sources: The code is still quite simple, so we can probably add a few more features ...? What about passing the values (BPM etc.) as (optional) command line arguments? What about user input during runtime? Since we already use |
|
not too much, it would be great ! |
There was a problem hiding this comment.
I think you should check new_pos, right?
You should also change nframes to blocksize (and you will actually need it in the implementation).
See https://github.com/jackaudio/example-clients/blob/master/intime.c.
|
I'm not agree with else part of About new_pos parameter, I can print something when About |
|
|
|
Thanks for the changes, the new features are great! I still don't quite understand how the
So in the case of The docs say
They also speak about Wouldn't you have to check for Sorry for the dumb questions, I'm just trying to understand ... |
|
At the beginning of callback pos struct have previous value. For example pos.tick was set to 43 and, after calculation, callback set pos.tick to 56. |
|
I see, thanks for the clarification: I still don't understand this: what happens if a different client uses |
|
Yes, like other soft like Qtractor. My first try was to use |
|
OK, so if another client uses Is this correct? If yes, I think it would be good to issue a notification message in the example client if a different client sets some data which is ignored. |
|
yes, it is correct. In example, I can check |
|
OK. I think it would be good if you could ...
|
|
I changed example, now, I test with ardour and qtractor, it seems that when you jump in song those application or jack reset
With previous version, I still have division by zero with qtractor just with a mouse click on tempo spin box to set focus on it. I find nothing on internet about frame rate set to zero. |
|
Thanks for your changes. But now it doesn't seem to work anymore ...
But aren't you supposed to check the values in this case? I think you should check It's very strange that the |
|
I reorganize callback, now I check about modified fields only when pos.valid have BBT flag set. I always set |
There was a problem hiding this comment.
I think you should check this only if new_pos is true.
If not, I guess we should assume all fields except the first 3 contain whatever we assigned before, right?
That's indeed a good question!
But do they respect if another client wants to be timebase master? Would #22 help? |
|
I merged #22 into master. |
|
@Vampouille If you are still interested in this, I've just added an implementation of the "showtime" client, see #20. |
|
For me, the purpose of this PR is to show an example of computation of |
I think we shouldn't ignore other tools. Especially with the handling of What about my other questions/comments? It would be nice to get this example into |
Squashed from spatialaudio#74. Closes spatialaudio#19.
|
Thanks @mgeier ! |
No description provided.