|
From: Christian S. <chr...@ep...> - 2003-12-27 02:09:42
|
Hi! It's time to design an API for LinuxSampler to allow communication between GUI frontends and sampler engine. I would like to hear your opinions about that. I think the API should be plain C (anybody against that?). The question is using only POSIX functions for the communication internally or using more sophisticated libraries for that. Marek suggested D-BUS for example: http://www.freedesktop.org/Software/dbus Sending a command from the frontend to the engine would be a simple function call for the frontend application, e.g. hEngine = connect_to_engine(ip_address, port); ... int res = load_instrument(hEngine, instrument_file, channel); Whatabout the reversal, e.g when the engine wants to inform the frontend, that the voice or disk stream count has changed? Should we simply use normal C callback functions? Comments appreciated! CU Christian |