Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

CallbackInterface.hxx

Go to the documentation of this file.
00001 #ifndef INCLUDED_PORTAUDIO_CALLBACKINTERFACE_HXX
00002 #define INCLUDED_PORTAUDIO_CALLBACKINTERFACE_HXX
00003 
00004 // ---------------------------------------------------------------------------------------
00005 
00006 #include "pa_common/portaudio.h"
00007 
00008 // ---------------------------------------------------------------------------------------
00009 
00010 namespace portaudio
00011 {
00012     // -----------------------------------------------------------------------------------
00013 
00018     class CallbackInterface
00019     {
00020     public:
00021         virtual ~CallbackInterface() {}
00022 
00023         virtual int paCallbackFun(const void *inputBuffer, void *outputBuffer, unsigned long numFrames, 
00024             const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags) = 0;
00025     };
00026 
00027     // -----------------------------------------------------------------------------------
00028 
00029     namespace impl
00030     {
00031         extern "C"
00032         {
00033             int callbackInterfaceToPaCallbackAdapter(const void *inputBuffer, void *outputBuffer, unsigned long numFrames, 
00034                 const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, 
00035                 void *userData);
00036         } // extern "C"
00037     }
00038 
00039     // -----------------------------------------------------------------------------------
00040 
00041 } // namespace portaudio
00042 
00043 // ---------------------------------------------------------------------------------------
00044 
00045 #endif // INCLUDED_PORTAUDIO_CALLBACKINTERFACE_HXX

Generated on Fri Apr 2 20:22:15 2004 for PortAudioCpp by doxygen 1.3.6