# SetMusicLoopTimesOGG

## Description

Sets the start and end times of the music loop. When PlayMusicOGG is used with the loop parameter it will by default stop at the end of the file and return to the beginning of the file. This command will change it to the looping begins and ends at specific times in the music file. Using a start time of -1 will return to the beginning of the file, using and end time of -1 will stop at the end of the file, these match the default behaviour. If the start time is greater than the current play time then the music file will continue playing until it reaches the end time, it will then return to the chosen start time.

## Definition

SetMusicLoopTimesOGG(UINT musicID, startTime, endTime)

void agk::SetMusicLoopTimesOGG(UINT musicID, float startTime, float endTime)

## Parameters

- musicID - The ID of the music file to change
- startTime - The time in seconds to return to at the beginning of a loop
- endTime - The time in seconds to end the loop and return to the start