Auto adjusting timeline to match the length of a sound file

I find it frustrating to have to always adjust the timeline manually to the length of an audio track. Surely there can be a method added to alter it automatically?