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