X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/1b311c53a8e12e4261fd4dd970308a5c011f98aa..46b610a25dea1e26f1348dac4024d72514130bb3:/iTunesRemote.m diff --git a/iTunesRemote.m b/iTunesRemote.m index 8386b3c..11ba443 100755 --- a/iTunesRemote.m +++ b/iTunesRemote.m @@ -670,6 +670,15 @@ return temp2; } +- (int)currentSongDuration +{ + SInt32 temp1; + ITDebugLog(@"Getting current song duration."); + temp1 = [ITSendAEWithString(@"'----':obj { form:'prop', want:type('prop'), seld:type('pDur'), from:obj { form:'prop', want:type('prop'), seld:type('pTrk'), from:'null'() } }", 'core', 'getd', &savedPSN) int32Value]; + ITDebugLog(@"Getting current song duration done."); + return temp1; +} + - (NSString *)currentSongRemaining { SInt32 duration, current, final;