package portaudio_c_bindings

  1. Overview
  2. Docs

This module is a thin wrapper around Ctypes.CArray.t so you should be careful how you use values of this type. It's mostly to avoid copying during the PortAudio callbacks. If you need to keep data around after the callback, copy it into another array that you manage.

type ('a, 'b) t
val set : ('a, 'b) t -> int -> 'a -> unit
val get : ('a, 'b) t -> int -> 'a
val length : ('a, 'b) t -> int
val buffer : ('a, 'b) t -> 'a Ctypes.CArray.t
val create : 'a Ctypes.typ -> len:int -> ('a, SampleFormat.non_interleaved) t
val slice : ('a, 'b) t -> start:int -> len:int -> ('a, 'b) t
val of_views : ('a, SampleFormat.non_interleaved) t array -> ('a Ctypes.ptr, SampleFormat.non_interleaved) t
OCaml

Innovation. Community. Security.