OSX: Added segments to loops.

- Added segment concept to loops. Implemented segments in player, not
tested yet.