openalpp::NetStream Class Reference

#include <netstream.h>

Inheritance diagram for openalpp::NetStream:

openalpp::Stream openalpp::SoundData openalpp::AudioBase openalpp::Referenced List of all members.

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 ()
NetStreamoperator= (const NetStream &stream)

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  ) 

Copy constructor.

openalpp::NetStream::~NetStream (  ) 

Destructor.


Member Function Documentation

NetStream& openalpp::NetStream::operator= ( const NetStream stream  ) 

Assignment operator.


The documentation for this class was generated from the following file:
Generated on Sun Oct 15 08:41:42 2006 for openalpp by  doxygen 1.4.7