Skip to content

Commit

Permalink
Add lame version
Browse files Browse the repository at this point in the history
  • Loading branch information
henkelmax committed Aug 9, 2022
1 parent 0f23c65 commit 8e33f04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/de/maxhenkel/lame4j/CliConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
public class CliConverter {

public static void main(String[] args) throws IOException {
System.out.println("LAME version " + Lame.INSTANCE.get_lame_version());
if (args.length < 2) {
System.out.println("Usage: java -jar lame4j.jar <input file> <output file>");
return;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/de/maxhenkel/lame4j/Lame.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public interface Lame extends Library {

Lame INSTANCE = Native.load(NativeLibrary.getInstance(LibraryLoader.getPath()).getFile().getAbsolutePath(), Lame.class);

String get_lame_version();

Pointer lame_init();

int lame_set_num_channels(Pointer gfp, int channels);
Expand Down

0 comments on commit 8e33f04

Please sign in to comment.