예제 #1
0
파일: Cset.php 프로젝트: lokamaya/zend-mp3
 /**
  * Constructs the class with given parameters and options.
  *
  * @param Zend_Io_Reader $reader  The reader object.
  */
 public function __construct($reader)
 {
     parent::__construct($reader);
     $this->_codePage = $this->_reader->readUInt16LE();
     $this->_countryCode = $this->_reader->readUInt16LE();
     $this->_language = $this->_reader->readUInt16LE();
     $this->_dialect = $this->_reader->readUInt16LE();
 }
예제 #2
0
 /**
  * Constructs the class with given parameters and options.
  *
  * @param Zend_Io_Reader $reader  The reader object.
  */
 public function __construct($reader)
 {
     parent::__construct($reader);
     $startOffset = $this->_reader->getOffset();
     $this->_type = $this->_reader->read(4);
     while ($this->_reader->getOffset() - $startOffset < $this->_size) {
         $offset = $this->_reader->getOffset();
         $identifier = $this->_reader->read(4);
         $size = $this->_reader->readUInt32LE();
         $this->_reader->setOffset($offset);
         if (@fopen($file = 'Zend/Media/Riff/Chunk/' . ucfirst(strtolower(rtrim($identifier, ' '))) . '.php', 'r', true) !== false) {
         }
         if (class_exists($classname = 'Zend_Media_Riff_Chunk_' . ucfirst(strtolower(rtrim($identifier, ' '))))) {
             $this->_chunks[] = new $classname($this->_reader);
             $this->_reader->setOffset($offset + 8 + $size);
         } else {
             trigger_error('Unknown RIFF chunk: \'' . $identifier . '\' skipped', E_USER_WARNING);
             $this->_reader->skip(8 + $size);
         }
     }
 }
예제 #3
0
 /**
  * Constructs the class with given parameters and options.
  *
  * @param Zend_Io_Reader $reader  The reader object.
  */
 public function __construct($reader)
 {
     parent::__construct($reader);
     require_once 'Zend/Media/Riff/Exception.php';
     throw new Zend_Media_Riff_Exception('Not yet implemented');
 }
예제 #4
0
 /**
  * Constructs the class with given parameters and options.
  *
  * @param Zend_Io_Reader $reader  The reader object.
  */
 public function __construct($reader)
 {
     parent::__construct($reader);
     $this->_value = rtrim($this->_reader->read($this->_size), "");
 }
예제 #5
0
파일: Cgrp.php 프로젝트: lokamaya/zend-mp3
 /**
  * Constructs the class with given parameters and options.
  *
  * @param Zend_Io_Reader $reader  The reader object.
  */
 public function __construct($reader)
 {
     parent::__construct($reader);
     throw new Zend_Media_Riff_Exception('Not yet implemented');
 }
예제 #6
0
 /**
  * Constructs the class with given parameters and options.
  *
  * @param Zend_Io_Reader $reader  The reader object.
  */
 public function __construct($reader)
 {
     parent::__construct($reader);
     $this->_tag = new Zend_Media_Id3v2($this->_reader, array('readonly' => true));
 }