mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-29 22:58:39 +02:00
Ensures that all files that Git considers to be text will have normalized (LF) line endings in the repository. When core.eol is set to native (which is the default), Git will convert the line endings of normalized files in your working directory back to your platform's native line ending. See also https://git-scm.com/docs/gitattributes
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
|
|
|