Make audio_sample_batch function static