package portaudio_c_bindings

  1. Overview
  2. Docs
include sig ... end
val e_val : 'a -> string -> 'a * int64
module PaError = Portaudio_types.PaError
val pa_device_index : int Ctypes_static.typ
val pa_host_api_index : int Ctypes_static.typ
val pa_time : float Ctypes_static.typ
module VersionInfo = Portaudio_types.VersionInfo
module SampleFormat = Portaudio_types.SampleFormat
module StreamFlags = Portaudio_types.StreamFlags
module DeviceInfo = Portaudio_types.DeviceInfo
module StreamParameters = Portaudio_types.StreamParameters
module StreamCallbackTimeInfo = Portaudio_types.StreamCallbackTimeInfo
module StreamCallbackFlags = Portaudio_types.StreamCallbackFlags
module StreamCallbackResult = Portaudio_types.StreamCallbackResult
type stream = unit
val stream : unit Ctypes_static.typ
val pa_stream_finished_callback : (unit Ctypes_static.ptr -> unit) Ctypes_static.fn
module StreamInfo = Portaudio_types.StreamInfo
module HostApiTypeId = Portaudio_types.HostApiTypeId
module HostApiInfo = Portaudio_types.HostApiInfo
module HostErrorInfo = Portaudio_types.HostErrorInfo
val get_version : unit -> int
val get_version_text : unit -> string
val get_version_info : unit -> VersionInfo.t Ctypes_static.ptr
val get_error_text : PaError.t -> string
val initialize : unit -> PaError.t
val terminate : unit -> PaError.t
val get_host_api_count : unit -> int
val get_default_host_api : unit -> int
val get_host_api_info : int -> HostApiInfo.t Ctypes_static.ptr
val host_api_type_id_to_host_api_index : HostApiTypeId.t -> int
val get_last_host_error_info : unit -> HostErrorInfo.t Ctypes_static.ptr
val get_device_count : unit -> int
val get_default_input_device : unit -> int
val get_default_output_device : unit -> int
val get_device_info : int -> DeviceInfo.t Ctypes_static.ptr
val close_stream : unit Ctypes_static.ptr -> PaError.t
val start_stream : unit Ctypes_static.ptr -> PaError.t
val stop_stream : unit Ctypes_static.ptr -> PaError.t
val abort_stream : unit Ctypes_static.ptr -> PaError.t
val is_stream_stopped : unit Ctypes_static.ptr -> PaError.t
val is_stream_active : unit Ctypes_static.ptr -> PaError.t
val set_stream_finished_callback : unit Ctypes_static.ptr -> (unit Ctypes_static.ptr -> unit) option -> PaError.t
val get_stream_info : unit Ctypes_static.ptr -> StreamInfo.t Ctypes_static.ptr
val get_stream_time : unit Ctypes_static.ptr -> float
val get_stream_cpu_load : unit Ctypes_static.ptr -> float
val read_stream : unit Ctypes_static.ptr -> unit Ctypes_static.ptr -> Unsigned.ulong -> PaError.t
val write_stream : unit Ctypes_static.ptr -> unit Ctypes_static.ptr -> Unsigned.ulong -> PaError.t
val get_stream_read_available : unit Ctypes_static.ptr -> Signed.long
val get_stream_write_available : unit Ctypes_static.ptr -> Signed.long
val get_sample_size : Unsigned.ulong -> PaError.t
val sleep : Signed.long -> unit