1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/decoder-ogg-stream.h Fri Nov 13 19:27:36 2009 +0800
1.3 @@ -0,0 +1,68 @@
1.4 +/*
1.5 + * MP3/MPlayer plugin to VDR (C++)
1.6 + *
1.7 + * (C) 2001-2009 Stefan Huelswitt <s.huelswitt@gmx.de>
1.8 + *
1.9 + * OGG stream support initialy developed by Manuel Reimer <manuel.reimer@gmx.de>
1.10 + *
1.11 + * This code is free software; you can redistribute it and/or
1.12 + * modify it under the terms of the GNU General Public License
1.13 + * as published by the Free Software Foundation; either version 2
1.14 + * of the License, or (at your option) any later version.
1.15 + *
1.16 + * This code is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + *
1.21 + * You should have received a copy of the GNU General Public License
1.22 + * along with this program; if not, write to the Free Software
1.23 + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1.24 + * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
1.25 + */
1.26 +
1.27 +#ifndef ___DECODER_OGG_STREAM_H
1.28 +#define ___DECODER_OGG_STREAM_H
1.29 +
1.30 +#define DEC_OGGS DEC_ID('O','G','G','S')
1.31 +#define DEC_OGGS_STR "OGGS"
1.32 +
1.33 +#include "decoder-ogg.h"
1.34 +
1.35 +class cNetStream;
1.36 +
1.37 +// ----------------------------------------------------------------
1.38 +
1.39 +class cNetOggFile : public cOggFile {
1.40 +friend class cNetOggInfo;
1.41 +private:
1.42 + cNetStream *nstr;
1.43 +public:
1.44 + cNetOggFile(const char *Filename);
1.45 + virtual bool Open(bool log=true);
1.46 + };
1.47 +
1.48 +// ----------------------------------------------------------------
1.49 +
1.50 +class cNetOggInfo : public cOggInfo {
1.51 +private:
1.52 + cNetOggFile *nfile;
1.53 + cNetStream *nstr;
1.54 + void IcyInfo(void);
1.55 +public:
1.56 + cNetOggInfo(cNetOggFile *File);
1.57 + virtual bool DoScan(bool KeepOpen=false);
1.58 + virtual void InfoHook(void);
1.59 + };
1.60 +
1.61 +// ----------------------------------------------------------------
1.62 +
1.63 +class cOggStreamDecoder : public cOggDecoder {
1.64 +private:
1.65 + cNetOggFile *nfile;
1.66 +public:
1.67 + cOggStreamDecoder(const char *Filename);
1.68 + virtual bool IsStream(void) { return true; }
1.69 + };
1.70 +
1.71 +#endif //___DECODER_OGG_STREAM_H