Chris@39: #ifndef INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX Chris@39: #define INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX Chris@39: Chris@39: // --------------------------------------------------------------------------------------- Chris@39: Chris@39: #include "portaudio.h" Chris@39: Chris@39: #include "portaudiocpp/CallbackStream.hxx" Chris@39: Chris@39: // --------------------------------------------------------------------------------------- Chris@39: Chris@39: // Forward declaration(s) Chris@39: namespace portaudio Chris@39: { Chris@39: class StreamParameters; Chris@39: class CallbackInterface; Chris@39: } 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 Callback stream using an instance of an object that's derived from the CallbackInterface Chris@39: /// interface. Chris@39: ////// Chris@39: class InterfaceCallbackStream : public CallbackStream Chris@39: { Chris@39: public: Chris@39: InterfaceCallbackStream(); Chris@39: InterfaceCallbackStream(const StreamParameters ¶meters, CallbackInterface &instance); Chris@39: ~InterfaceCallbackStream(); Chris@39: Chris@39: void open(const StreamParameters ¶meters, CallbackInterface &instance); Chris@39: Chris@39: private: Chris@39: InterfaceCallbackStream(const InterfaceCallbackStream &); // non-copyable Chris@39: InterfaceCallbackStream &operator=(const InterfaceCallbackStream &); // non-copyable Chris@39: }; Chris@39: Chris@39: Chris@39: } // portaudio Chris@39: Chris@39: // --------------------------------------------------------------------------------------- Chris@39: Chris@39: #endif // INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX