annotate src/portaudio_20140130/bindings/cpp/include/portaudiocpp/BlockingStream.hxx @ 48:9530b331f8c1

Add Cap'n Proto source
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 25 Oct 2016 11:17:01 +0100
parents 7ddb4fc30dac
children
rev   line source
Chris@39 1 #ifndef INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
Chris@39 2 #define INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
Chris@39 3
Chris@39 4 // ---------------------------------------------------------------------------------------
Chris@39 5
Chris@39 6 #include "portaudiocpp/Stream.hxx"
Chris@39 7
Chris@39 8 // ---------------------------------------------------------------------------------------
Chris@39 9
Chris@39 10 namespace portaudio
Chris@39 11 {
Chris@39 12
Chris@39 13
Chris@39 14
Chris@39 15 //////
Chris@39 16 /// @brief Stream class for blocking read/write-style input and output.
Chris@39 17 //////
Chris@39 18 class BlockingStream : public Stream
Chris@39 19 {
Chris@39 20 public:
Chris@39 21 BlockingStream();
Chris@39 22 BlockingStream(const StreamParameters &parameters);
Chris@39 23 ~BlockingStream();
Chris@39 24
Chris@39 25 void open(const StreamParameters &parameters);
Chris@39 26
Chris@39 27 void read(void *buffer, unsigned long numFrames);
Chris@39 28 void write(const void *buffer, unsigned long numFrames);
Chris@39 29
Chris@39 30 signed long availableReadSize() const;
Chris@39 31 signed long availableWriteSize() const;
Chris@39 32
Chris@39 33 private:
Chris@39 34 BlockingStream(const BlockingStream &); // non-copyable
Chris@39 35 BlockingStream &operator=(const BlockingStream &); // non-copyable
Chris@39 36 };
Chris@39 37
Chris@39 38
Chris@39 39
Chris@39 40 } // portaudio
Chris@39 41
Chris@39 42 // ---------------------------------------------------------------------------------------
Chris@39 43
Chris@39 44 #endif // INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
Chris@39 45