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