Added a currentSongPlayed method that returns the integer seconds played in the curre...
[MenuTunes.git] / iTunesRemote.m
index 11ba443..dbd21fb 100755 (executable)
     return temp2;
 }
 
+- (int)currentSongPlayed
+{
+       UInt32 final;
+    ITDebugLog(@"Getting current song played time.");
+       final = [ITSendAEWithKey('pPos', 'core', 'getd', &savedPSN) int32Value];
+    ITDebugLog(@"Getting current song played time done.");
+    return final;
+}
+
 - (int)currentSongDuration
 {
     SInt32 temp1;