public function getLength($flags = 0) { if ($flags & self::TRY_HARD) { $this->setLengthIfUnknown(); } return $this->length; }
public function notifyNowPlaying(SSLTrack $track = null) { $nicecastOutput = <<<EOF Title: {$track->getTitle()} Artist: {$track->getArtist()} Album: {$track->getAlbum()} Time: {$track->getLength()} EOF; file_put_contents($this->getFilename(), $nicecastOutput); }