00001 #ifndef INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX 00002 #define INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX 00003 00004 // --------------------------------------------------------------------------------------- 00005 00006 #include "pa_common/portaudio.h" 00007 00008 #include "portaudiocpp/CallbackStream.hxx" 00009 00010 // --------------------------------------------------------------------------------------- 00011 00012 // Forward declaration(s) 00013 namespace portaudio 00014 { 00015 class StreamParameters; 00016 class CallbackInterface; 00017 } 00018 00019 // --------------------------------------------------------------------------------------- 00020 00021 // Declaration(s): 00022 namespace portaudio 00023 { 00024 00025 00030 class InterfaceCallbackStream : public CallbackStream 00031 { 00032 public: 00033 InterfaceCallbackStream(); 00034 InterfaceCallbackStream(const StreamParameters ¶meters, CallbackInterface &instance); 00035 ~InterfaceCallbackStream(); 00036 00037 void open(const StreamParameters ¶meters, CallbackInterface &instance); 00038 00039 private: 00040 InterfaceCallbackStream(const InterfaceCallbackStream &); // non-copyable 00041 InterfaceCallbackStream &operator=(const InterfaceCallbackStream &); // non-copyable 00042 }; 00043 00044 00045 } // portaudio 00046 00047 // --------------------------------------------------------------------------------------- 00048 00049 #endif // INCLUDED_PORTAUDIO_INTERFACECALLBACKSTREAM_HXX