/** * Gets the length location of the track (how many seconds into the track we are) * * @author Ross Carlson * @version 2/9/05 * @since 2/9/05 * @param return returns the amount of time played in seconds */ function getCurrentTrackLocation() { return getCurTrackLocation(); }
/** * Returns how long is left in the current track (in seconds) * * @author Ross Carlson * @version 2/9/05 * @since 2/9/05 * @return Returns the name of the current playing track */ function getCurTrackRemaining() { global $jbArr; // Let's create our object $myMpd = _mpdConnection(); // Let's return what's left return $myMpd->current_track_length - getCurTrackLocation(); }
/** * Returns how long is left in the current track (in seconds) * * @author Ross Carlson * @version 2/9/05 * @since 2/9/05 * @return Returns the name of the current playing track */ function getCurTrackRemaining() { global $jbArr; $length = getCurTrackLength(); $cur = getCurTrackLocation(); $val = $length - $cur + 2; writeLogData("messages", "Winamp3: Returning time remaining: " . $val); return $val; }
/** * Returns how long is left in the current track (in seconds) * * @author Ross Carlson * @version 2/9/05 * @since 2/9/05 * @return Returns the name of the current playing track */ function getCurTrackRemaining() { global $jbArr; // First let's get the full status from the player $status = getATStatus(); // Now let's get the location $cur = getCurTrackLocation(); // Now let's get the length $length = getCurTrackLength(); $remain = $length - $cur; // Now let's return return $remain; }
/** * Returns how long is left in the current track (in seconds) * * @author Ross Carlson * @version 4/9/05 * @since 4/9/05 * @return Returns the name of the current playing track */ function getCurTrackRemaining() { global $jbArr; $length = getCurTrackLength(); $cur = getCurTrackLocation(); return $length - $cur + 2; }