13
0

Fix Wsign-compare

This commit is contained in:
Robin Gareus 2024-06-06 22:52:30 +02:00
parent c000f77ce2
commit 8a145c3bc1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -112,7 +112,7 @@ PortExportChannel::read (Buffer const*& buf, samplecnt_t samples) const
assert (_buffer); assert (_buffer);
assert (samples <= _buffer_size); assert (samples <= _buffer_size);
if (ports.size () == 1 && _delaylines.size () == 1 && !ports.begin ()->expired () && _delaylines.front ()->bufsize () == _buffer_size + 1) { if (ports.size () == 1 && _delaylines.size () == 1 && !ports.begin ()->expired () && (samplecnt_t) _delaylines.front ()->bufsize () == _buffer_size + 1) {
std::shared_ptr<AudioPort> p = ports.begin ()->lock (); std::shared_ptr<AudioPort> p = ports.begin ()->lock ();
AudioBuffer& ab (p->get_audio_buffer (samples)); // unsets AudioBuffer::_written AudioBuffer& ab (p->get_audio_buffer (samples)); // unsets AudioBuffer::_written
ab.set_written (true); ab.set_written (true);