main: set initial bufferLength to dispatch initial buffering event (refs #48)