use of de.mossgrabers.bitwig.framework.osc.OpenSoundControlServerImpl in project DrivenByMoss by git-moss.
the class HostImpl method createOSCServer.
/**
* {@inheritDoc}
*/
@Override
public IOpenSoundControlServer createOSCServer(final IOpenSoundControlCallback callback) {
final OscModule oscModule = this.host.getOscModule();
final OscAddressSpace addressSpace = oscModule.createAddressSpace();
addressSpace.registerDefaultMethod((source, message) -> callback.handle(new OpenSoundControlMessageImpl(message)));
return new OpenSoundControlServerImpl(oscModule.createUdpServer(addressSpace));
}
Aggregations