openalpp::NetStream Class Reference
List of all members.
Detailed Description
Class for handling streams through sockets. Preliminary tests indicate that packets smaller than ca 1 kb should not be used (tests were done with Mono8, 11025 Hz).
Constructor & Destructor Documentation
openalpp::NetStream::NetStream |
( |
ost::UDPSocket * |
socket, |
|
|
ost::TCPStream * |
controlsocket = NULL | |
|
) |
| | |
Constructor.
- Parameters:
-
| 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.
- Parameters:
-
| 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 |
) |
|
openalpp::NetStream::~NetStream |
( |
|
) |
|
Member Function Documentation
The documentation for this class was generated from the following file: