PageRenderTime 23ms CodeModel.GetById 14ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/xbmc/cores/paplayer/ModplugCodec.h

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