samples and frames written