X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/46b610a25dea1e26f1348dac4024d72514130bb3..780eb8412d27bba1eaaf0a03ab74f90c62f28253:/iTunesRemote.m?ds=sidebyside diff --git a/iTunesRemote.m b/iTunesRemote.m index 11ba443..dbd21fb 100755 --- a/iTunesRemote.m +++ b/iTunesRemote.m @@ -670,6 +670,15 @@ 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;