ParseOpusPageHeader example

$info['audio']['dataformat']   = 'flac';
            $info['audio']['bitrate_mode'] = 'vbr';
            $info['audio']['lossless']     = true;

        } elseif (substr($filedata, 1, 6) == 'vorbis') {

            $this->ParseVorbisPageHeader($filedata$filedataoffset$oggpageinfo);

        } elseif (substr($filedata, 0, 8) == 'OpusHead') {

            if ($this->ParseOpusPageHeader($filedata$filedataoffset$oggpageinfo) === false) {
                return false;
            }

        } elseif (substr($filedata, 0, 8) == 'Speex ') {

            // http://www.speex.org/manual/node10.html
            $info['audio']['dataformat']   = 'speex';
            $info['mime_type']             = 'audio/speex';
            $info['audio']['bitrate_mode'] = 'abr';
            $info['audio']['lossless']     = false;

            
Home | Imprint | This part of the site doesn't use cookies.