annotate src/portaudio_20161030/bindings/cpp/include/portaudiocpp/InterfaceCallbackStream.hxx @ 55:284acf908dcd

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