hosc-0.11: Haskell Open Sound Control

Sound.OpenSoundControl.Coding.Decode.Binary

Description

Optimised decode function for OSC packets.

Synopsis

Documentation

getOSC :: Get OSCSource

Get an OSC packet.

decodeOSC :: ByteString -> OSCSource

Decode an OSC packet from a lazy ByteString.

 let b = L.pack [47,103,95,102,114,101,101,0,44,105,0,0,0,0,0,0]
 in decodeOSC b == Message "/g_free" [Int 0]

decodeOSC' :: ByteString -> OSCSource

Decode an OSC packet from a strict ByteString.