/xbmc/cores/paplayer/ASAPCodec.h

http://github.com/xbmc/xbmc · C Header · 45 lines · 19 code · 7 blank · 19 comment · 0 complexity · e9861771066f2bc098eece23b19b9a9b MD5 · raw file

  1. #ifndef ASAP_CODEC_H_
  2. #define ASAP_CODEC_H_
  3. /*
  4. * Copyright (C) 2005-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. #include "ICodec.h"
  23. #include "DllASAP.h"
  24. class ASAPCodec : public ICodec
  25. {
  26. public:
  27. ASAPCodec();
  28. virtual ~ASAPCodec();
  29. virtual bool Init(const CStdString &strFile, unsigned int filecache);
  30. virtual void DeInit();
  31. virtual int64_t Seek(int64_t iSeekTime);
  32. virtual int ReadPCM(BYTE *pBuffer, int size, int *actualsize);
  33. virtual bool CanInit();
  34. static bool IsSupportedFormat(const CStdString &strExt);
  35. private:
  36. DllASAP m_dll;
  37. };
  38. #endif