o
odin.langpkg.dev
packages / library / Open_Sound_Control

Open_Sound_Control

fc21dc0library

Open Sound Control protocol for the Odin programming language

No license · updated 7 months ago

Open Sound Control library for Odin

This is an implementation of the Open Sound Control protocol for the Odin programming language, wirtten in pure Odin.

Open Sound Control Spec v1.0 https://opensoundcontrol.stanford.edu/spec-1_0.html

How to use the library

Download or clone this repository and put the folder inside ODIN_ROOT/shared

ODIN_ROOT?

ODIN_ROOT is the path to the folder containing the Odin compiler executable (source). So, this path contains the folders for the core standard library, the vendor library and the shared folder for user defined libraries.

Create a project anywhere and import the library like this:

package main

import osc "shared:Open_Sound_Control"

main :: proc() {
    buffer := [64]u8{}
    some_value :: 15.5
    _ = osc.message_create("/address", buffer[:], some_value)
}

Documentation

The library is still in development