mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-02 09:05:13 -05:00
e8dbf4c446
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@249 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#ifndef INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
|
|
#define INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
|
|
|
|
// ---------------------------------------------------------------------------------------
|
|
|
|
#include "portaudiocpp/Stream.hxx"
|
|
|
|
// ---------------------------------------------------------------------------------------
|
|
|
|
namespace portaudio
|
|
{
|
|
|
|
|
|
|
|
//////
|
|
/// @brief Stream class for blocking read/write-style input and output.
|
|
//////
|
|
class BlockingStream : public Stream
|
|
{
|
|
public:
|
|
BlockingStream();
|
|
BlockingStream(const StreamParameters ¶meters);
|
|
~BlockingStream();
|
|
|
|
void open(const StreamParameters ¶meters);
|
|
|
|
void read(void *buffer, unsigned long numFrames);
|
|
void write(const void *buffer, unsigned long numFrames);
|
|
|
|
signed long availableReadSize() const;
|
|
signed long availableWriteSize() const;
|
|
|
|
private:
|
|
BlockingStream(const BlockingStream &); // non-copyable
|
|
BlockingStream &operator=(const BlockingStream &); // non-copyable
|
|
};
|
|
|
|
|
|
|
|
} // portaudio
|
|
|
|
// ---------------------------------------------------------------------------------------
|
|
|
|
#endif // INCLUDED_PORTAUDIO_BLOCKINGSTREAM_HXX
|
|
|