add function for reading frame file as WaveData format