dart_osc library

A Dart implementation of the Open Sound Control (OSC) protocol specification 1.0

This library provides a complete implementation of OSC as defined in the specification, including:

  • OSC Messages with type-safe arguments
  • OSC Bundles with time tags
  • Pattern matching for address dispatching
  • Encoding/decoding of all OSC data types
  • Support for both standard and extended OSC types

Classes

DecodeResult<T>
Result of a decode operation containing the decoded value and bytes consumed
OscAddress
Represents an OSC Address as defined in the OSC specification.
OscAddressPattern
Represents an OSC Address Pattern as defined in the OSC specification.
OscArgument
Represents an OSC argument with its type and value
OscBundle
Represents an OSC Bundle as defined in the OSC specification.
OscDecoder
Decodes OSC atomic data types from their binary representation
OscEncoder
Encodes OSC atomic data types to their binary representation
OscErrorEvent
OscMessage
Represents an OSC Message as defined in the OSC specification.
OscPacket
Abstract base class for all OSC packets (messages and bundles)
OscPacketEvent
OscTimeTag
Represents an OSC Time Tag as defined in the OSC specification.
OscTypeTagString
Represents an OSC Type Tag String as defined in the OSC specification.
OscUdpSocket
A unified UDP socket for OSC communication

Exceptions / Errors

OscAddressException
Exception thrown when OSC address pattern is invalid
OscArgumentException
Exception thrown when OSC argument type is invalid
OscDecodingException
Exception thrown when OSC data decoding fails
OscEncodingException
Exception thrown when OSC data encoding fails
OscException
Base exception for all OSC-related errors
OscFormatException
Exception thrown when OSC data format is invalid
OscPatternException
Exception thrown when OSC pattern matching fails