annotate src/portaudio_20140130/bindings/cpp/include/portaudiocpp/InterfaceCallbackStream.hxx @ 39:7ddb4fc30dac

Current stable PortAudio source
author Chris Cannam
date Tue, 18 Oct 2016 13:11:05 +0100
parents
children
rev   line source
Chris@39 1 #ifndef INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX
Chris@39 2 #define INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX
Chris@39 3
Chris@39 4 // ---------------------------------------------------------------------------------------
Chris@39 5
Chris@39 6 #include "portaudio.h"
Chris@39 7
Chris@39 8 #include "portaudiocpp/CallbackStream.hxx"
Chris@39 9
Chris@39 10 // ---------------------------------------------------------------------------------------
Chris@39 11
Chris@39 12 // Forward declaration(s)
Chris@39 13 namespace portaudio
Chris@39 14 {
Chris@39 15 class StreamParameters;
Chris@39 16 class CallbackInterface;
Chris@39 17 }
Chris@39 18
Chris@39 19 // ---------------------------------------------------------------------------------------
Chris@39 20
Chris@39 21 // Declaration(s):
Chris@39 22 namespace portaudio
Chris@39 23 {
Chris@39 24
Chris@39 25
Chris@39 26 //////
Chris@39 27 /// @brief Callback stream using an instance of an object that's derived from the CallbackInterface
Chris@39 28 /// interface.
Chris@39 29 //////
Chris@39 30 class InterfaceCallbackStream : public CallbackStream
Chris@39 31 {
Chris@39 32 public:
Chris@39 33 InterfaceCallbackStream();
Chris@39 34 InterfaceCallbackStream(const StreamParameters &parameters, CallbackInterface &instance);
Chris@39 35 ~InterfaceCallbackStream();
Chris@39 36
Chris@39 37 void open(const StreamParameters &parameters, CallbackInterface &instance);
Chris@39 38
Chris@39 39 private:
Chris@39 40 InterfaceCallbackStream(const InterfaceCallbackStream &); // non-copyable
Chris@39 41 InterfaceCallbackStream &operator=(const InterfaceCallbackStream &); // non-copyable
Chris@39 42 };
Chris@39 43
Chris@39 44
Chris@39 45 } // portaudio
Chris@39 46
Chris@39 47 // ---------------------------------------------------------------------------------------
Chris@39 48
Chris@39 49 #endif // INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX