package mm

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Circular ringbuffers.

type t

A ringbuffer.

val create : int -> int -> t

Create a ringbuffer of given number of channels and size (in samples).

val channels : t -> int
val read_space : t -> int
val write_space : t -> int
val read_advance : t -> int -> unit
val write_advance : t -> int -> unit
val peek : t -> buffer -> unit
val read : t -> buffer -> unit
val write : t -> buffer -> unit
val transmit : t -> (buffer -> int) -> int
OCaml

Innovation. Community. Security.