This commit is contained in:
2011-02-26 14:30:14 +00:00
parent 30ebdeb7e3
commit 4c75ba5599
15 changed files with 183 additions and 119 deletions

View File

@@ -117,6 +117,14 @@ public class ITPlaylist extends ITObject {
Dispatch.put(object, "SongRepeat", repeatMode.ordinal());
}
/**
* Cycle repeat modes.
*/
public void cycleSongRepeat() {
int repeat = Dispatch.get(object, "SongRepeat").getInt();
Dispatch.put(object, "SongRepeat", (repeat + 1) % 3);
}
/**
* Returns the playback repeat mode.
* @return Returns the playback repeat mode.

View File

@@ -499,4 +499,8 @@ public class iTunes {
Dispatch window = iTunes.getProperty("BrowserWindow").toDispatch();
return new ITBrowserWindow(window);
}
public void cycleSongRepeat() {
getCurrentPlaylist().cycleSongRepeat();
}
}