fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Query regarding FluidSynth


From: Swapnil Gupta
Subject: Re: [fluid-dev] Query regarding FluidSynth
Date: Thu, 5 Apr 2018 15:44:15 +0530

Tom,

Thanks a lot for that :). I want to use this in my android app using JNI/NDK. Do you know of any definitive guide that helps me integrate fluidsynth with android. I have come across a github project https://github.com/VolcanoMobile/fluidsynth-android and it seems that I can use this in my android app. Can anyone here here vouch for it? Thank you.

Regards.
Swapnil.

On Wed, Apr 4, 2018 at 10:46 PM, Tom M. <address@hidden> wrote:
Just added example code for the file renderer:
http://www.fluidsynth.org/api/index.html#FileRenderer

(changes should be pulic on 5th April approx. 10 AM UTC... unless
Element reads this and triggers the cron job)


Tom

2018-04-04 16:26 GMT+02:00 Marcus Weseloh <address@hidden>:
> Hi Swapnil,
>
> yes, it's possible via the API as well. Should work with something along
> these lines (untested code, just for demonstration):
>
> fluid_player_t* player;
> fluid_file_renderer_t* renderer;
>
> player = new_fluid_player(synth);
> fluid_player_add(player, "/path/to/midifile.mid");
>
> fluid_settings_setint(settings, "synth.parallel-render", 1); /* needed for
> fast-render */
> fluid_settings_setstr(settings, "audio.file.name", "/path/to/output.wav");
>
> renderer = new_fluid_file_renderer (synth);
>
> while (fluid_player_get_status(player) == FLUID_PLAYER_PLAYING) {
>   if (fluid_file_renderer_process_block(renderer)  !=  FLUID_OK) {
>     break;
>   }
> }
>
> delete_fluid_file_renderer(renderer);
> delete_fluid_player(player);
>
>
> Not shown is the synth and settings setup. Please see the /doc/example.c on
> how to create and destroy Fluidsynth instances and settings objects.
>
> Cheers,
>
>
>    Marcus
>
>
> _______________________________________________
> fluid-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>

_______________________________________________
fluid-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fluid-dev



--
Swapnil Gupta
Music Technology Group.
Universitat Pompeu Fabra.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]