To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
The primary repository for this project is hosted at https://github.com/sonic-visualiser/sv-dependency-builds .
This repository is a read-only copy which is updated automatically every hour.
root / src / portaudio_20161030_catalina_patch / bindings / cpp / include / portaudiocpp / CallbackStream.hxx @ 164:9fa11135915a
History | View | Annotate | Download (953 Bytes)
| 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 |