Mercurial > hg > sv-dependency-builds
annotate src/portaudio_20161030/bindings/cpp/include/portaudiocpp/BlockingStream.hxx @ 55:284acf908dcd
Add source for PortAudio stable v190600_20161030
author | Chris Cannam |
---|---|
date | Tue, 03 Jan 2017 13:44:07 +0000 |
parents | src/portaudio/bindings/cpp/include/portaudiocpp/BlockingStream.hxx@e13257ea84a4 |
children |
rev | line source |
---|---|
Chris@55 | 1 #ifndef INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX |
Chris@55 | 2 #define INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX |
Chris@55 | 3 |
Chris@55 | 4 // --------------------------------------------------------------------------------------- |
Chris@55 | 5 |
Chris@55 | 6 #include "portaudiocpp/Stream.hxx" |
Chris@55 | 7 |
Chris@55 | 8 // --------------------------------------------------------------------------------------- |
Chris@55 | 9 |
Chris@55 | 10 namespace portaudio |
Chris@55 | 11 { |
Chris@55 | 12 |
Chris@55 | 13 |
Chris@55 | 14 |
Chris@55 | 15 ////// |
Chris@55 | 16 /// @brief Stream class for blocking read/write-style input and output. |
Chris@55 | 17 ////// |
Chris@55 | 18 class BlockingStream : public Stream |
Chris@55 | 19 { |
Chris@55 | 20 public: |
Chris@55 | 21 BlockingStream(); |
Chris@55 | 22 BlockingStream(const StreamParameters ¶meters); |
Chris@55 | 23 ~BlockingStream(); |
Chris@55 | 24 |
Chris@55 | 25 void open(const StreamParameters ¶meters); |
Chris@55 | 26 |
Chris@55 | 27 void read(void *buffer, unsigned long numFrames); |
Chris@55 | 28 void write(const void *buffer, unsigned long numFrames); |
Chris@55 | 29 |
Chris@55 | 30 signed long availableReadSize() const; |
Chris@55 | 31 signed long availableWriteSize() const; |
Chris@55 | 32 |
Chris@55 | 33 private: |
Chris@55 | 34 BlockingStream(const BlockingStream &); // non-copyable |
Chris@55 | 35 BlockingStream &operator=(const BlockingStream &); // non-copyable |
Chris@55 | 36 }; |
Chris@55 | 37 |
Chris@55 | 38 |
Chris@55 | 39 |
Chris@55 | 40 } // portaudio |
Chris@55 | 41 |
Chris@55 | 42 // --------------------------------------------------------------------------------------- |
Chris@55 | 43 |
Chris@55 | 44 #endif // INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX |
Chris@55 | 45 |