コード例 #1
0
ファイル: class.php プロジェクト: seanfbrown/jinzora
 /**
  * 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();
 }
コード例 #2
0
ファイル: mpd.php プロジェクト: seanfbrown/jinzora
/**
 * 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();
}
コード例 #3
0
ファイル: winamp3.php プロジェクト: seanfbrown/jinzora
/**
 * 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;
}
コード例 #4
0
ファイル: audiotron.php プロジェクト: seanfbrown/jinzora
/**
 * 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;
}
コード例 #5
0
ファイル: slimserver.php プロジェクト: seanfbrown/jinzora
/**
 * 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;
}