package portaudio

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception Error of int
exception Unanticipated_host_error
val string_of_error : int -> string
val get_last_host_error : unit -> int * string
val get_version : unit -> int
val get_version_string : unit -> string
val init : unit -> unit
val terminate : unit -> unit
type host_api_info = {
  1. h_struct_version : int;
  2. h_host_api_type : int;
  3. h_name : string;
  4. h_device_count : int;
  5. h_default_input_device : int;
  6. h_default_output_device : int;
}
val get_host_api_count : unit -> int
val get_default_host_api : unit -> int
val get_host_api_info : int -> host_api_info
type device_info = {
  1. d_struct_version : int;
  2. d_name : string;
  3. d_host_api : int;
  4. d_max_input_channels : int;
  5. d_max_output_channels : int;
  6. d_default_low_input_latency : float;
  7. d_default_low_output_latency : float;
  8. d_default_high_input_latency : float;
  9. d_default_high_output_latency : float;
  10. d_default_sample_rate : float;
}
val get_default_input_device : unit -> int
val get_default_output_device : unit -> int
val get_device_count : unit -> int
val get_device_info : int -> device_info
type ('a, 'b) sample_format
val format_int8 : (int, Bigarray.int8_signed_elt) sample_format
val format_int16 : (int, Bigarray.int16_signed_elt) sample_format
val format_int24 : (int32, Bigarray.int32_elt) sample_format
val format_int32 : (int32, Bigarray.int32_elt) sample_format
val format_float32 : (float, Bigarray.float32_elt) sample_format
type (!'a, !'b) stream_parameters = {
  1. channels : int;
  2. device : int;
  3. sample_format : ('a, 'b) sample_format;
  4. latency : float;
}
type stream_flag
type ('a, 'b, 'c, 'd) stream
type (!'a, !'b, !'c, !'d) callback = ('a, 'b, Bigarray.c_layout) Bigarray.Genarray.t -> ('c, 'd, Bigarray.c_layout) Bigarray.Genarray.t -> int -> int
val open_stream : ('a, 'b) stream_parameters option -> ('c, 'd) stream_parameters option -> ?interleaved:bool -> float -> int -> ?callback:('a, 'b, 'c, 'd) callback -> stream_flag list -> ('a, 'b, 'c, 'd) stream
val open_default_stream : ?callback:('a, 'b, 'a, 'b) callback -> ?format:('a, 'b) sample_format -> ?interleaved:bool -> int -> int -> int -> int -> ('a, 'b, 'a, 'b) stream
val close_stream : ('a, 'b, 'c, 'd) stream -> unit
val start_stream : ('a, 'b, 'c, 'd) stream -> unit
val stop_stream : ('a, 'b, 'c, 'd) stream -> unit
val abort_stream : ('a, 'b, 'c, 'd) stream -> unit
val sleep : int -> unit
val write_stream : ('a, 'b, 'c, 'd) stream -> 'c array array -> int -> int -> unit
val read_stream : ('a, 'b, 'c, 'd) stream -> 'a array array -> int -> int -> unit
val write_stream_ba : ('a, 'b, 'c, 'd) stream -> ('c, 'd, Bigarray.c_layout) Bigarray.Genarray.t -> int -> int -> unit
val read_stream_ba : ('a, 'b, 'c, 'd) stream -> ('a, 'b, Bigarray.c_layout) Bigarray.Genarray.t -> int -> int -> unit
OCaml

Innovation. Community. Security.