// Perform editing operation switch (editSelection) { case 1: audioFile.trim(); break; case 2: audioFile.loop(); break; // ... }