Git Product home page Git Product logo

swiftoca's Introduction

SwiftOCA

SwiftOCA is pure Swift implementation of the AES70/OCA control protocol, principally used for remote control of professional audio devices.

The package consists of three libraries:

All APIs are async-safe and support both macOS and Linux: on macOS, FlyingFox is used for socket I/O, and on Linux, IORingSwift.

Platform TCP UDP client UDP server WS client WS server Local
macOS
Linux

Example code can be found in Examples.

Support for AES70-2023 is in progress: adding new classes is straightforward, using the @OcaProperty and @OcaDeviceProperty wrappers. For a class with only properties, it is only necessary to declare the property and accessor IDs, and all logic including event notification will be handled at runtime. For custom logic, override the handleCommand(from:) method. Custom access control can be implemented at the object or device level by overriding ensureReadable(by:command) and ensureWritable(by:command).

Serialization to JSON types is provided using the jsonObject and deserialize(jsonObject:) methods, which walk the list of declared properties, encoding non-JSON types using Codable.

A sample SwiftUI view library is also included, and a Flutter bridge is under development here. Below is a screenshot generated using SwiftOCAUI controls:

OCABrowser

Luke Howard [email protected]

swiftoca's People

Contributors

lhoward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swiftoca's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.