2 * MP3/MPlayer plugin to VDR (C++)
4 * (C) 2001-2009 Stefan Huelswitt <s.huelswitt@gmx.de>
6 * This code is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This code is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
22 #ifndef ___DECODER_CORE_H
23 #define ___DECODER_CORE_H
27 #define DEC_ID(a,b,c,d) (((a)<<24)+((b)<<16)+((c)<<8)+(d))
29 // ----------------------------------------------------------------
31 enum eDecodeStatus { dsOK=0, dsPlay, dsSkip, dsEof, dsError, dsSoftError };
39 // ----------------------------------------------------------------
41 #define CACHE_VERSION 8
43 class cCacheData : public cSongInfo, public cFileInfo, public cListObject {
44 friend class cInfoCache;
50 bool Check8bit(const char *str);
57 void Create(cFileInfo *fi, cSongInfo *si, bool update);
60 void Lock(void) { lock.Lock(); }
61 void Unlock(void) { lock.Unlock(); }
64 // ----------------------------------------------------------------
66 #endif //___DECODER_CORE_H