Fixed NULL deferences in TX callback, added file output for debug

On underrun, we'd attempt to memset 'samples' which, in addition to
being the previous buffer, will be NULL on our initial set of callbacks.

Initial debugging of the TX side indicates potential issues with our
FIFO usage