Mercurial > hg > sv-dependency-builds
annotate 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 |
rev | line source |
---|---|
Chris@4 | 1 #ifndef INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX |
Chris@4 | 2 #define INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX |
Chris@4 | 3 |
Chris@4 | 4 // --------------------------------------------------------------------------------------- |
Chris@4 | 5 |
Chris@4 | 6 #include "portaudio.h" |
Chris@4 | 7 |
Chris@4 | 8 #include "portaudiocpp/Stream.hxx" |
Chris@4 | 9 |
Chris@4 | 10 // --------------------------------------------------------------------------------------- |
Chris@4 | 11 |
Chris@4 | 12 // Declaration(s): |
Chris@4 | 13 namespace portaudio |
Chris@4 | 14 { |
Chris@4 | 15 |
Chris@4 | 16 |
Chris@4 | 17 ////// |
Chris@4 | 18 /// @brief Base class for all Streams which use a callback-based mechanism. |
Chris@4 | 19 ////// |
Chris@4 | 20 class CallbackStream : public Stream |
Chris@4 | 21 { |
Chris@4 | 22 protected: |
Chris@4 | 23 CallbackStream(); |
Chris@4 | 24 virtual ~CallbackStream(); |
Chris@4 | 25 |
Chris@4 | 26 public: |
Chris@4 | 27 // stream info (time-varying) |
Chris@4 | 28 double cpuLoad() const; |
Chris@4 | 29 |
Chris@4 | 30 private: |
Chris@4 | 31 CallbackStream(const CallbackStream &); // non-copyable |
Chris@4 | 32 CallbackStream &operator=(const CallbackStream &); // non-copyable |
Chris@4 | 33 }; |
Chris@4 | 34 |
Chris@4 | 35 |
Chris@4 | 36 } // namespace portaudio |
Chris@4 | 37 |
Chris@4 | 38 // --------------------------------------------------------------------------------------- |
Chris@4 | 39 |
Chris@4 | 40 #endif // INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX |