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