comparison src/portaudio/bindings/cpp/include/portaudiocpp/CallbackStream.hxx @ 4:e13257ea84a4

Add bzip2, zlib, liblo, portaudio sources
author Chris Cannam
date Wed, 20 Mar 2013 13:59:52 +0000
parents
children
comparison
equal deleted inserted replaced
3:6c505a35919a 4:e13257ea84a4
1 #ifndef INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX
2 #define INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX
3
4 // ---------------------------------------------------------------------------------------
5
6 #include "portaudio.h"
7
8 #include "portaudiocpp/Stream.hxx"
9
10 // ---------------------------------------------------------------------------------------
11
12 // Declaration(s):
13 namespace portaudio
14 {
15
16
17 //////
18 /// @brief Base class for all Streams which use a callback-based mechanism.
19 //////
20 class CallbackStream : public Stream
21 {
22 protected:
23 CallbackStream();
24 virtual ~CallbackStream();
25
26 public:
27 // stream info (time-varying)
28 double cpuLoad() const;
29
30 private:
31 CallbackStream(const CallbackStream &); // non-copyable
32 CallbackStream &operator=(const CallbackStream &); // non-copyable
33 };
34
35
36 } // namespace portaudio
37
38 // ---------------------------------------------------------------------------------------
39
40 #endif // INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX