Public Member Functions | |
NetStream (ost::UDPSocket *socket, ost::TCPStream *controlsocket=NULL) | |
NetStream (ost::UDPSocket *socket, SampleFormat format, unsigned int frequency, unsigned int buffersize) | |
NetStream (const NetStream &stream) | |
~NetStream () | |
NetStream & | operator= (const NetStream &stream) |
openalpp::NetStream::NetStream | ( | ost::UDPSocket * | socket, | |
ost::TCPStream * | controlsocket = NULL | |||
) |
Constructor.
socket | is the socket to stream data through. | |
controlsocket | is an (optional) TCPStream that can be used to send information about the stream. The constructor will begin with trying to read SampleFormat, frequency, and buffer size. The sender can also use the control socket to send "EXIT" when it's run out of data to send. If this parameter is not given, defaults will be used (format=Mono8, frequency=11025, buffersize=4096). |
openalpp::NetStream::NetStream | ( | ost::UDPSocket * | socket, | |
SampleFormat | format, | |||
unsigned int | frequency, | |||
unsigned int | buffersize | |||
) |
Constructor.
socket | is the socket to stream data through. | |
format | is the format the data will be in. | |
frequency | is the frequency of the sound. | |
buffersize | is the size of the sound buffer. Note that the actual packets sent over the network can be smaller (or bigger!); this is just the size of the buffer OpenAL++ will use to receive the data. |
openalpp::NetStream::NetStream | ( | const NetStream & | stream | ) |
Copy constructor.
openalpp::NetStream::~NetStream | ( | ) |
Destructor.