// Cleanup internal void Flush() { if (spkOut != null) { spkOut.flush(); spkOut = null; } if (spkOutRaw != null) { spkOutRaw.flush(); spkOutRaw = null; } if (spkOutSalpa != null) { spkOutSalpa.flush(); spkOutSalpa = null; } if (rawOut != null) { rawOut.flush(); rawOut = null; } if (salpaOut != null) { salpaOut.flush(); salpaOut = null; } if (spkFiltOut != null) { spkFiltOut.flush(); spkFiltOut = null; } if (lfpOut != null) { lfpOut.flush(); lfpOut = null; } ; if (stimOut != null) { stimOut.flush(); stimOut = null; } if (auxAnalogOut != null) { auxAnalogOut.flush(); auxAnalogOut = null; } ; if (auxDigitalOut != null) { auxDigitalOut.flush(); auxDigitalOut = null; } }