renamed freq to sample_rate in AudioSpec