PageRenderTime 129ms CodeModel.GetById 125ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/xbmc/cores/paplayer/SIDCodec.h

http://github.com/xbmc/xbmc
C++ Header | 52 lines | 26 code | 7 blank | 19 comment | 0 complexity | 9796ac9ba236544c7a9e0ce37a70e9aa MD5 | raw file
 1#ifndef SID_CODEC_H_
 2#define SID_CODEC_H_
 3
 4/*
 5 *      Copyright (C) 2005-2013 Team XBMC
 6 *      http://xbmc.org
 7 *
 8 *  This Program is free software; you can redistribute it and/or modify
 9 *  it under the terms of the GNU General Public License as published by
10 *  the Free Software Foundation; either version 2, or (at your option)
11 *  any later version.
12 *
13 *  This Program is distributed in the hope that it will be useful,
14 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 *  GNU General Public License for more details.
17 *
18 *  You should have received a copy of the GNU General Public License
19 *  along with XBMC; see the file COPYING.  If not, see
20 *  <http://www.gnu.org/licenses/>.
21 *
22 */
23
24#include "ICodec.h"
25#include "DllSidplay2.h"
26
27class SIDCodec : public ICodec
28{
29public:
30  SIDCodec();
31  virtual ~SIDCodec();
32
33  virtual bool Init(const CStdString &strFile, unsigned int filecache);
34  virtual void DeInit();
35  virtual int64_t Seek(int64_t iSeekTime);
36  virtual int ReadPCM(BYTE *pBuffer, int size, int *actualsize);
37  virtual bool CanInit();
38  virtual CAEChannelInfo GetChannelInfo();
39
40  virtual void SetTotalTime(int64_t totaltime)
41  {
42    m_TotalTime = totaltime*1000;
43  }
44private:
45  DllSidplay2 m_dll;
46  void* m_sid;
47  int m_iTrack;
48  int64_t m_iDataPos;
49};
50
51#endif
52