/xbmc/cores/IAudioCallback.h

http://github.com/xbmc/xbmc · C Header · 42 lines · 14 code · 6 blank · 22 comment · 0 complexity · ba8ca12f86c0b1dfe8f4c53b0b70814f MD5 · raw file

  1. // IAudioCallback.h: interface for the IAudioCallback class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_IAUDIOCALLBACK_H__5A6AC7CF_C60E_45B9_8113_599F036FBBF8__INCLUDED_)
  5. #define AFX_IAUDIOCALLBACK_H__5A6AC7CF_C60E_45B9_8113_599F036FBBF8__INCLUDED_
  6. /*
  7. * Copyright (C) 2005-2013 Team XBMC
  8. * http://xbmc.org
  9. *
  10. * This Program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2, or (at your option)
  13. * any later version.
  14. *
  15. * This Program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with XBMC; see the file COPYING. If not, see
  22. * <http://www.gnu.org/licenses/>.
  23. *
  24. */
  25. #if _MSC_VER > 1000
  26. #pragma once
  27. #endif // _MSC_VER > 1000
  28. class IAudioCallback
  29. {
  30. public:
  31. IAudioCallback() {};
  32. virtual ~IAudioCallback() {};
  33. virtual void OnInitialize(int iChannels, int iSamplesPerSec, int iBitsPerSample) = 0;
  34. virtual void OnAudioData(const float* pAudioData, int iAudioDataLength) = 0;
  35. };
  36. #endif // !defined(AFX_IAUDIOCALLBACK_H__5A6AC7CF_C60E_45B9_8113_599F036FBBF8__INCLUDED_)