-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,9 @@ | |
|
||
(* Author; Romain Beauxis <[email protected]> *) | ||
|
||
(** {1 Native FLAC decoder/encoder modules for OCaml} *) | ||
(** {1 Native FLAC decoder/encoder modules for OCaml} *) | ||
|
||
type audio_buffer = (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t | ||
|
||
(** Decode native FLAC data *) | ||
module Decoder : | ||
|
@@ -80,7 +82,7 @@ sig | |
type 'a t | ||
|
||
(** Type of a write callback. *) | ||
type write = (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t array -> unit | ||
type write = audio_buffer array -> unit | ||
|
||
(** Type of a read callback. *) | ||
type read = bytes -> int -> int -> int | ||
|
@@ -335,7 +337,7 @@ sig | |
val create : ?comments:comments -> params -> 'a callbacks -> 'a t | ||
|
||
(** Encode some data *) | ||
val process : 'a t -> 'a callbacks -> float array array -> unit | ||
val process : 'a t -> 'a callbacks -> audio_buffer array -> unit | ||
|
||
(** Terminate an encoder. Causes the encoder to | ||
* flush remaining encoded data. The encoder should | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters