| 1 |
#ifndef INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX |
| 2 |
#define INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX |
| 3 |
|
| 4 |
// --------------------------------------------------------------------------------------- |
| 5 |
|
| 6 |
#include "portaudio.h" |
| 7 |
|
| 8 |
#include "portaudiocpp/Stream.hxx" |
| 9 |
|
| 10 |
// --------------------------------------------------------------------------------------- |
| 11 |
|
| 12 |
// Declaration(s): |
| 13 |
namespace portaudio |
| 14 |
{ |
| 15 |
|
| 16 |
|
| 17 |
////// |
| 18 |
/// @brief Base class for all Streams which use a callback-based mechanism. |
| 19 |
////// |
| 20 |
class CallbackStream : public Stream |
| 21 |
{ |
| 22 |
protected: |
| 23 |
CallbackStream(); |
| 24 |
virtual ~CallbackStream(); |
| 25 |
|
| 26 |
public: |
| 27 |
// stream info (time-varying) |
| 28 |
double cpuLoad() const; |
| 29 |
|
| 30 |
private: |
| 31 |
CallbackStream(const CallbackStream &); // non-copyable |
| 32 |
CallbackStream &operator=(const CallbackStream &); // non-copyable |
| 33 |
}; |
| 34 |
|
| 35 |
|
| 36 |
} // namespace portaudio |
| 37 |
|
| 38 |
// --------------------------------------------------------------------------------------- |
| 39 |
|
| 40 |
#endif // INCLUDED_PORTAUDIO_CALLBACKSTREAM_HXX |