Chris@39: #ifndef INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX Chris@39: #define INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX Chris@39: Chris@39: // --------------------------------------------------------------------------------------- Chris@39: Chris@39: #include "portaudio.h" Chris@39: Chris@39: #include "portaudiocpp/Stream.hxx" Chris@39: Chris@39: // --------------------------------------------------------------------------------------- Chris@39: Chris@39: // Declaration(s): Chris@39: namespace portaudio Chris@39: { Chris@39: Chris@39: Chris@39: ////// Chris@39: /// @brief Base class for all Streams which use a callback-based mechanism. Chris@39: ////// Chris@39: class CallbackStream : public Stream Chris@39: { Chris@39: protected: Chris@39: CallbackStream(); Chris@39: virtual ~CallbackStream(); Chris@39: Chris@39: public: Chris@39: // stream info (time-varying) Chris@39: double cpuLoad() const; Chris@39: Chris@39: private: Chris@39: CallbackStream(const CallbackStream &); // non-copyable Chris@39: CallbackStream &operator=(const CallbackStream &); // non-copyable Chris@39: }; Chris@39: Chris@39: Chris@39: } // namespace portaudio Chris@39: Chris@39: // --------------------------------------------------------------------------------------- Chris@39: Chris@39: #endif // INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX