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
Juce 7.0.11+
AudioTransportSource
hasStreamFinished
App crashes with nullptr exception
All functions except hasStreamFinished() have nullptr checks, check stacktrace as example
hasStreamFinished()
hasStreamFinished should return true in case of missing source
Windows
Win10
64-bit
bool AudioTransportSource::hasStreamFinished() const noexcept { return positionableSource->getNextReadPosition() > positionableSource->getTotalLength() + 1 && ! positionableSource->isLooping(); } void AudioTransportSource::setNextReadPosition (int64 newPosition) { if (positionableSource != nullptr) { if (sampleRate > 0 && sourceSampleRate > 0) newPosition = (int64) ((double) newPosition * sourceSampleRate / sampleRate); positionableSource->setNextReadPosition (newPosition); if (resamplerSource != nullptr) resamplerSource->flushBuffers(); } } int64 AudioTransportSource::getNextReadPosition() const { const ScopedLock sl (callbackLock); if (positionableSource != nullptr) { const double ratio = (sampleRate > 0 && sourceSampleRate > 0) ? sampleRate / sourceSampleRate : 1.0; return (int64) ((double) positionableSource->getNextReadPosition() * ratio); } return 0; }
No response
develop
The bug is present on the develop branch
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Detailed steps on how to reproduce the bug
Juce 7.0.11+
AudioTransportSource
instancehasStreamFinished
methodApp crashes with nullptr exception
All functions except
hasStreamFinished()
have nullptr checks, check stacktrace as exampleWhat is the expected behaviour?
hasStreamFinished
should return true in case of missing sourceOperating systems
Windows
What versions of the operating systems?
Win10
Architectures
64-bit
Stacktrace
Plug-in formats (if applicable)
No response
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the
develop
branchThe bug is present on the
develop
branchCode of Conduct
The text was updated successfully, but these errors were encountered: