~ubuntu-branches/ubuntu/trusty/python-sfml/trusty

« back to all changes in this revision

Viewing changes to src/sfml/DerivableSoundRecorder.hpp

  • Committer: Package Import Robot
  • Author(s): James Cowgill
  • Date: 2013-12-09 17:50:52 UTC
  • mfrom: (1.1.3) (8.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20131209175052-11v6drpb6g3yksst
Tags: 1.5.1.is.1.3+dfsg-1
* New upstream version 1.3 (from python-sfml.org)
  - This is a complete rewrite of the Python bindings for SFML2, and
    the new maintainer is using a different version numbering scheme.
* Added myself to the list of uploaders
* Change package priority from extra to optional
* Bumped standards version (to 3.9.5) and debhelper compat (to 9)
* Added Python 3 and documentation packages
* Improve package description for debug packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
////////////////////////////////////////////////////////////////////////////////
 
2
//
 
3
// pySFML - Python bindings for SFML
 
4
// Copyright 2012-2013, Jonathan De Wachter <dewachter.jonathan@gmail.com>
 
5
//
 
6
// This software is released under the LGPLv3 license.
 
7
// You should have received a copy of the GNU Lesser General Public License
 
8
// along with this program. If not, see <http://www.gnu.org/licenses/>.
 
9
//
 
10
////////////////////////////////////////////////////////////////////////////////
 
11
 
 
12
 
 
13
#ifndef DERIVABLE_SOUND_RECORDER_HPP
 
14
#define DERIVABLE_SOUND_RECORDER_HPP
 
15
 
 
16
#include "Python.h"
 
17
#include <SFML/Audio.hpp>
 
18
#include "pysfml/audio_api.h"
 
19
 
 
20
 
 
21
class DerivableSoundRecorder : public sf::SoundRecorder
 
22
{
 
23
public :
 
24
        DerivableSoundRecorder(void* pyThis);
 
25
 
 
26
protected:
 
27
        virtual bool onStart();
 
28
        virtual bool onProcessSamples(const sf::Int16* samples, std::size_t sampleCount);
 
29
        virtual void onStop();
 
30
 
 
31
        PyObject* m_pyobj;
 
32
};
 
33
 
 
34
 
 
35
#endif // DERIVABLE_SOUND_RECORDER_HPP