Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash during running the Program.java #30

Open
tanzl18 opened this issue Jul 26, 2021 · 3 comments
Open

Crash during running the Program.java #30

tanzl18 opened this issue Jul 26, 2021 · 3 comments

Comments

@tanzl18
Copy link

tanzl18 commented Jul 26, 2021

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!

@lostromb
Copy link
Owner

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.

@tanzl18
Copy link
Author

tanzl18 commented Jul 26, 2021

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
Copy link
Author

tanzl18 commented Jul 26, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants