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