Source

chirp / chirp.mli

module Sample : sig
  type t

  val load : string -> t
  val set_volume : t -> int -> unit
end

val init : unit -> unit

(* [allocate_channels num] allocates num channels for mixing *)
val allocate_channels : int -> unit

(* [set_volume channnel volume] sets the volume of the given channel.
 * Valid volumes range from 0 to 128 inclusive. *)
val set_volume : int -> int -> unit

val play : int -> ?repeat:int -> Sample.t -> unit
val play_fade_in : int -> ?repeat:int -> Sample.t -> int -> unit
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.