📄 ogg.h.svn-base
字号:
// ------------------------------------------------// File : ogg.h// Date: 28-may-2003// Author: giles//// (c) 2002-3 peercast.org// ------------------------------------------------// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.// ------------------------------------------------#ifndef _OGG_H#define _OGG_H#include "channel.h"// ----------------------------------------------class OggPacket;// ----------------------------------------------class OGGStream : public ChannelStream{public: virtual void readHeader(Stream &,Channel *);
virtual void readPacket(Stream &,Channel *);
virtual void readEnd(Stream &,Channel *);
void readVorbisHeaders(Stream &,Channel *, OggPacket &); void readVorbisIdent(Stream &, ChanInfo &); void readVorbisSetup(Stream &); void readVorbisComment(Stream &, ChanInfo &);};// ----------------------------------class OggPacket{public: enum { MAX_BODYLEN = 65536, MAX_HEADERLEN = 27+256 }; void read(Stream &); bool isBOS(); bool isNewPacket(); int headLen,bodyLen; unsigned char data[MAX_HEADERLEN+MAX_BODYLEN];};// ----------------------------------class VorbisPacket{public: enum { MAX_BODYLEN = 65536 // probably too small }; int bodyLen; unsigned char body[MAX_BODYLEN];};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -