weixin_39987138 2020-11-20 21:15
浏览 0

please make fluid_synth_get_ticks() API public

Hi.

It would be nice the have fluid_synth_get_ticks() public.
It will allow me to find out the position where I am
currently synthesizing. The function is already available,
just not exported to the user.
I realize that it may be not as simple as it seems, and
there may be issues to consider. For instance, whether or
not these ticks will have the same timebase with the sequencer
ticks, is something to think about.

Right now I am trying to track the ticks externally, which
is sub-optimal, and probably inaccurate too.

Reported by: stsp

Original Ticket: fluidsynth/tickets/113

该提问来源于开源项目:FluidSynth/fluidsynth

  • 写回答

7条回答 默认 最新

  • weixin_39987138 2020-11-20 21:15
    关注

    Hmm, it seems pretty trivial to track to me. Just use new_fluid_audio_driver2 and count the samples going through.

    Those are the ticks returned by fluid_synth_get_ticks. If you need to track midi progress; I don't think using fluid_synth_get_ticks is the correct answer.

    Original comment by: diwic

    评论

报告相同问题?