Hi, on my HTC M9 I occasionally select one of my music tracks for the alarm and it will play the full track repeatedly until I 'dismiss' or 'snooze', although I haven't let it play for 30 minutes, but have no doubt it would do. Your device may well do the same.
Hope this helps.