Search in sources :

Example 1 with OpenSoundControlServerImpl

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));
}
Also used : OscAddressSpace(com.bitwig.extension.api.opensoundcontrol.OscAddressSpace) OscModule(com.bitwig.extension.api.opensoundcontrol.OscModule) OpenSoundControlMessageImpl(de.mossgrabers.bitwig.framework.osc.OpenSoundControlMessageImpl) OpenSoundControlServerImpl(de.mossgrabers.bitwig.framework.osc.OpenSoundControlServerImpl)

Aggregations

OscAddressSpace (com.bitwig.extension.api.opensoundcontrol.OscAddressSpace)1 OscModule (com.bitwig.extension.api.opensoundcontrol.OscModule)1 OpenSoundControlMessageImpl (de.mossgrabers.bitwig.framework.osc.OpenSoundControlMessageImpl)1 OpenSoundControlServerImpl (de.mossgrabers.bitwig.framework.osc.OpenSoundControlServerImpl)1