DiskReader should do nothing at all if there are no channels
This commit is contained in:
parent
4cc5958960
commit
7921f6dc4d
@ -251,12 +251,14 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (speed == 0.0) {
|
if (c->empty()) {
|
||||||
/* Nothing to do here.
|
/* do nothing */
|
||||||
*
|
return;
|
||||||
* Do not clear input buffers here when (ms == MonitoringDisk)
|
}
|
||||||
* we need to allow out-of-band data to pass thru from the input.
|
|
||||||
* (e.g. MIDI immediate events)
|
if ((speed == 0.0) && (ms == MonitoringDisk)) {
|
||||||
|
/* no channels, or stopped. Don't accidentally pass any data
|
||||||
|
* from disk into our outputs (e.g. via interpolation)
|
||||||
*/
|
*/
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user