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

How to combine multiple audio files of different formats together? #268

Open
mainrs opened this issue May 17, 2024 · 0 comments
Open

How to combine multiple audio files of different formats together? #268

mainrs opened this issue May 17, 2024 · 0 comments

Comments

@mainrs
Copy link

mainrs commented May 17, 2024

Basically, I have two audio files. One contains the instruments of a song and another the vocals. I need to create a single output stream that combines them both.

The issue is that no Java library I found is able to playback two files in sync. So my idea was to use Jave2 to first create a combined audio stream and send that to the output device.

I don't need the result to be saved to a file. If possible, I'd like to send the resulting stream.

Bonus points if I can adjust the volume of each audio file inside the stream during playback somehow.

I looked into the documentation, but it wasnt clear to me how to do this.

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

1 participant