|
From: Christian S. <chr...@ep...> - 2004-06-14 19:59:30
|
Hi! First off my latest commit may break things a bit, so I uploaded a CVS snapshot tarball before: http://www.linuxsampler.org/downloads.html Rui, I propose you also upload a snapshot of a qsampler version which fits the best to that LS version, so that users have a working environment while we implement the new network protocol draft and deal with the transition due to this. Now the changes: * src/common: added template class 'optional<>' which can be used e.g. as return type whenever a value might be returned, but don't has to; this template class pretty much acts like a pointer of the given type, but is much more safer than a simple pointer * src/audiodriver: added static class AudioDeviceFactory to create audio devices at runtime by using a string and to obtain driver informations of drivers at runtime, driver classes should simply use the macro REGISTER_AUDIO_OUTPUT_DRIVER(DriverName,DriverClass) in their cpp file to register the driver to LinuxSampler (no changes needed anymore in the LS code to add a new audio output driver) * src/drivers: added classes to dynamically manage driver parameters; there are two different kinds of parameters: parameters which are need to create a new device (DeviceCreationParameterX) used to e.g. create an audio output device or a MIDI input device and parameters which are only available at runtime, means when a device is already created (DeviceRuntimeParameterX) which will be e.g. used as audio channel parameters and MIDI port parameters * src/linuxsampler.cpp: all registered audio output drivers will be shown on the console on startup * src/network: implemented configuration of audio output devices via LSCP Vladimir, sorry I did not have the time to test it, so it maybe buggy as hell. But I hope the course is clear with the stuff I commited. MIDI device configuration can simply be done the same, so you just have to duplicate the used technics for MIDI device configuration. This will be my last commit (major commit at least) for the next four weeks or so, once again exams time... Hope you guys won't let development of LS stall in the meantime !!! CU Christian P.S. Maybe you even get Benno to move his ass ! |