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