Public Member Functions | Protected Member Functions | Protected Attributes

openalpp::Capture Class Reference

Inheritance diagram for openalpp::Capture:
openalpp::Stream openalpp::SoundData openalpp::AudioBase

List of all members.

Public Member Functions

 Capture ()
 Capture (int device, unsigned int samplerate, unsigned int buffersize=1024, SampleFormat format=Mono16)
 Capture (const Capture &input)
Captureoperator= (const Capture &input)

Protected Member Functions

virtual ~Capture ()

Protected Attributes

ALCdevice * pCaptureDevice_
unsigned long bufferSize_
unsigned long sampleRate_
SampleFormat sampleFormat_

Detailed Description

Class for capturing sound from input devices, like microphones.


Constructor & Destructor Documentation

openalpp::Capture::Capture (  ) 

Constructor.

openalpp::Capture::Capture ( int  device,
unsigned int  samplerate,
unsigned int  buffersize = 1024,
SampleFormat  format = Mono16 
)

Constructor.

Parameters:
device is the device to open. -1 for default input.
samplerate is the desired sample rate.
buffersize is the desired buffer size _in samples_.
format is the desired sample format.
openalpp::Capture::Capture ( const Capture input  ) 

Copy constructor.

virtual openalpp::Capture::~Capture (  )  [protected, virtual]

Destructor.


Member Function Documentation

Capture& openalpp::Capture::operator= ( const Capture input  ) 

Assignment operator.


Member Data Documentation

unsigned long openalpp::Capture::bufferSize_ [protected]
ALCdevice* openalpp::Capture::pCaptureDevice_ [protected]
unsigned long openalpp::Capture::sampleRate_ [protected]

The documentation for this class was generated from the following file: