Skip to content

Commit

Permalink
Prepare for 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jan 4, 2023
1 parent b382211 commit 12bfdf2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 32 deletions.
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.3.3 (unreleased)
0.3.3 (04-01-2022)
=====
* Bring back dynamic loader (#5)

Expand Down
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
(synopsis "Fraunhofer FDK AAC Codec Library")
(description "The FDK AAC Codec Library For Android contains an encoder implementation of the Advanced Audio Coding (AAC) audio codec.")
(depends
conf-fdkaac
dune
dune-configurator)
)
12 changes: 6 additions & 6 deletions examples/wav2aac.ml
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ let _ =
output_string oc ret
done
with
| End_of_file -> ()
| Fdkaac.Encoder.Error _ as e ->
failwith
(match Fdkaac.Encoder.string_of_exception e with
| Some s -> s
| None -> "Unknown error.")
| End_of_file -> ()
| Fdkaac.Encoder.Error _ as e ->
failwith
(match Fdkaac.Encoder.string_of_exception e with
| Some s -> s
| None -> "Unknown error.")
end;
let ret =
try Fdkaac.Encoder.flush enc
Expand Down
10 changes: 1 addition & 9 deletions fdkaac.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ license: "GPL-2.0"
homepage: "https://github.com/savonet/ocaml-fdkaac"
bug-reports: "https://github.com/savonet/ocaml-fdkaac/issues"
depends: [
"conf-fdkaac"
"dune" {>= "2.9"}
"dune-configurator"
"odoc" {with-doc}
Expand All @@ -31,12 +32,3 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/savonet/ocaml-fdkaac.git"
depexts: [
["fdk-aac-dev"] {os-distribution = "alpine"}
["libfdk-aac"] {os-distribution = "arch"}
["fdk-aac-devel"] {os-distribution = "centos"}
["fdk-aac-devel"] {os-distribution = "fedora"}
["fdk-aac-devel"] {os-family = "suse"}
["libfdk-aac-dev"] {os-family = "debian"}
["fdk-aac"] {os = "macos" & os-distribution = "homebrew"}
]
9 changes: 0 additions & 9 deletions fdkaac.opam.template

This file was deleted.

9 changes: 2 additions & 7 deletions src/fdkaac.ml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,12 @@ module Encoder = struct

external info : enc -> info = "ocaml_fdkaac_info"

type t = {
enc : enc;
mutable info : info option;
buffer : Buffer.t;
chans : int;
}
type t = { enc : enc; mutable info : info option; buffer : Buffer.t }

external create : int -> enc = "ocaml_fdkaac_init_enc"

let create chans =
{ enc = create chans; info = None; buffer = Buffer.create 1024; chans }
{ enc = create chans; info = None; buffer = Buffer.create 1024 }

type mpeg2_aac = [ `AAC_LC | `HE_AAC | `HE_AAC_v2 ]
type mpeg4_aac = [ mpeg2_aac | `AAC_LD | `AAC_ELD ]
Expand Down

0 comments on commit 12bfdf2

Please sign in to comment.