concentus icon indicating copy to clipboard operation
concentus copied to clipboard

Crash during running the Program.java

Open tanzl18 opened this issue 3 years ago • 3 comments

Dir Sir, When I was running the /java/org/concentus/console/Program.java, there is code as bellow:

        OpusInfo info = new OpusInfo();

        info.setNumChannels(2);

        info.setSampleRate(48000);

        OpusTags tags = new OpusTags();

        //tags.setVendor("Concentus");

        //tags.addComment("title", "A test!");

        OpusFile file = new OpusFile(fileOut, info, tags);`

But I can`t find OpusInfo.java or OpusTags.java or OpusFile.java in the code file. And there seems to be no "org.gagravarr.ogg.*" in the code files.

How can I get the javafiles? Thanks for your attention!

tanzl18 avatar Jul 26 '21 01:07 tanzl18

Yeah, so that all comes from this library: https://github.com/Gagravarr/VorbisJava/tree/master/core/src/main/java/org/gagravarr/opus

I have absolutely no experience with the Java ecosystem, Maven, or even basic pom files, so I didn't know how to declare a dependency on this library without just manually downloading the .jar

I talked with the author of that library years ago about doing an integration between his library and Concentus, and he replied that he would like to keep his code independent.

If you know Java better than I do and would like to fix the dependency I would be most grateful.

lostromb avatar Jul 26 '21 02:07 lostromb

Thank you for your reply! I`m just a beginner of Java learning and also have little experience in Java ecosystem. It seems that using the Maven can help to get the javafiles that I wanted. Thanks again!

tanzl18 avatar Jul 26 '21 06:07 tanzl18

Dear sir, Excuse me, is there any demo like program.java for decoding opus to raw or wav .etc?

tanzl18 avatar Jul 26 '21 07:07 tanzl18