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

Android: Issue with multiple MixerSource.TYPE_RECORD sources recording #5

Open
pintukumarpatil opened this issue Mar 3, 2020 · 0 comments

Comments

@pintukumarpatil
Copy link

pintukumarpatil commented Mar 3, 2020

Hello Team,
I am getting issue in case of two recording sources: The voice is not clear

mixer= new AudioMixer(new MixerConfig(
new ArrayList<>(Arrays.asList(
new MixerSource(MixerSource.TYPE_RECORD, 1, 1, outputFile, sampleRate,
channelCount),
new MixerSource(MixerSource.TYPE_RECORD, 2, 1, outputFile, sampleRate,
channelCount)
)),
sampleRate, channelCount, 10
));

And writing buffer like

try {
byte[] data = audioSamples.getData();
mixer.addRecordedData(ssrc, data, data.length);
AudioBuffer buffer = mixer.mix();
if (buffer.getSize() > 0) {
mixerDump.write(buffer.getBuffer(), 0, buffer.getSize());
}
} catch (Exception e) {
e.printStackTrace();
}

@pintukumarpatil pintukumarpatil changed the title Issue with multiple MixerSource.TYPE_RECORD sources recording Android: Issue with multiple MixerSource.TYPE_RECORD sources recording Mar 3, 2020
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