Mercurial > hg > sv-dependency-builds
annotate src/portaudio_20161030/bindings/cpp/include/portaudiocpp/CallbackStream.hxx @ 81:7029a4916348
Merge build update
author | Chris Cannam |
---|---|
date | Thu, 31 Oct 2019 13:36:58 +0000 |
parents | 284acf908dcd |
children |
rev | line source |
---|---|
Chris@55 | 1 #ifndef INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX |
Chris@55 | 2 #define INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX |
Chris@55 | 3 |
Chris@55 | 4 // --------------------------------------------------------------------------------------- |
Chris@55 | 5 |
Chris@55 | 6 #include "portaudio.h" |
Chris@55 | 7 |
Chris@55 | 8 #include "portaudiocpp/Stream.hxx" |
Chris@55 | 9 |
Chris@55 | 10 // --------------------------------------------------------------------------------------- |
Chris@55 | 11 |
Chris@55 | 12 // Declaration(s): |
Chris@55 | 13 namespace portaudio |
Chris@55 | 14 { |
Chris@55 | 15 |
Chris@55 | 16 |
Chris@55 | 17 ////// |
Chris@55 | 18 /// @brief Base class for all Streams which use a callback-based mechanism. |
Chris@55 | 19 ////// |
Chris@55 | 20 class CallbackStream : public Stream |
Chris@55 | 21 { |
Chris@55 | 22 protected: |
Chris@55 | 23 CallbackStream(); |
Chris@55 | 24 virtual ~CallbackStream(); |
Chris@55 | 25 |
Chris@55 | 26 public: |
Chris@55 | 27 // stream info (time-varying) |
Chris@55 | 28 double cpuLoad() const; |
Chris@55 | 29 |
Chris@55 | 30 private: |
Chris@55 | 31 CallbackStream(const CallbackStream &); // non-copyable |
Chris@55 | 32 CallbackStream &operator=(const CallbackStream &); // non-copyable |
Chris@55 | 33 }; |
Chris@55 | 34 |
Chris@55 | 35 |
Chris@55 | 36 } // namespace portaudio |
Chris@55 | 37 |
Chris@55 | 38 // --------------------------------------------------------------------------------------- |
Chris@55 | 39 |
Chris@55 | 40 #endif // INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX |