We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using sonic with exoplayer There is noise when playing at x0.5 It's a lot worse than what you hear on a macbook
Can you help me.
ExoPlayer
I replaced the old one with the latest sonic.java, and implemented the following methods
public void getOutput(ShortBuffer buffer) { int framesToRead = Math.min(buffer.limit() / numChannels, numOutputSamples); int size = framesToRead * numChannels; if (bufferToRead == null || bufferToRead.length < size) { bufferToRead = new short[size]; } readShortFromStream(bufferToRead, framesToRead); buffer.put(bufferToRead, 0, size); } public void queueInput(ShortBuffer buffer) { int bufferSize = buffer.remaining(); int framesToWrite = bufferSize / numChannels; if (bufferToWrite == null || bufferToWrite.length < buffer.limit()) { bufferToWrite = new short[buffer.limit()]; } buffer.get(bufferToWrite, 0, buffer.limit()); writeShortToStream(bufferToWrite, framesToWrite); } public void queueEndOfStream() { int remainingFrameCount = numInputSamples; float s = speed / pitch; float r = rate * pitch; int expectedOutputFrames = numOutputSamples + (int) ((remainingFrameCount / s + numPitchSamples) / r + 0.5f); // Add enough silence to flush both input and pitch buffers. enlargeInputBufferIfNeeded(remainingFrameCount + 2 * maxRequired); for (int xSample = 0; xSample < 2 * maxRequired * numChannels; xSample++) { inputBuffer[remainingFrameCount * numChannels + xSample] = 0; } numInputSamples += 2 * maxRequired; processStreamInput(); // Throw away any extra frames we generated due to the silence we added. if (numOutputSamples > expectedOutputFrames) { numOutputSamples = expectedOutputFrames; } // Empty input and pitch buffers. numInputSamples = 0; this.remainingInputToCopy = 0; numPitchSamples = 0; } public int getOutputSize() { return numOutputSamples * numChannels * 2; }
w.mp3.zip
The text was updated successfully, but these errors were encountered:
exoplayer version 2.10.8
Sorry, something went wrong.
No branches or pull requests
I'm using sonic with exoplayer
There is noise when playing at x0.5
It's a lot worse than what you hear on a macbook
Can you help me.
ExoPlayer
I replaced the old one with the latest sonic.java, and implemented the following methods
Mp3 files for testing
w.mp3.zip
The text was updated successfully, but these errors were encountered: