PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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