Change planar_samples from int16_t to SampleType.