45 lines
890 B
C++
45 lines
890 B
C++
/**
|
|
* @author Gary P. SCAVONE
|
|
*
|
|
* @copyright 2001-2013 Gary P. Scavone, all right reserved
|
|
*
|
|
* @license like MIT (see license file)
|
|
*/
|
|
|
|
#ifndef __AIRTAUDIO_CALLBACK_INFO_H__
|
|
#define __AIRTAUDIO_CALLBACK_INFO_H__
|
|
|
|
#include <thread>
|
|
|
|
namespace airtaudio {
|
|
// This global structure type is used to pass callback information
|
|
// between the private RtAudio stream structure and global callback
|
|
// handling functions.
|
|
class CallbackInfo {
|
|
public:
|
|
void* object; // Used as a "this" pointer.
|
|
std::thread* thread;
|
|
void* callback;
|
|
void* userData;
|
|
void* apiInfo; // void pointer for API specific callback information
|
|
bool isRunning;
|
|
bool doRealtime;
|
|
int32_t priority;
|
|
|
|
// Default constructor.
|
|
CallbackInfo() :
|
|
object(0),
|
|
callback(0),
|
|
userData(0),
|
|
apiInfo(0),
|
|
isRunning(false),
|
|
doRealtime(false) {
|
|
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
#endif
|
|
|