Documentation of SFML 1.6

Warning: this page refers to an old version of SFML. Click here to switch to the latest version.
sf::SoundBufferRecorder Class Reference

Specialized SoundRecorder which saves the captured audio data into a sound buffer. More...

#include <SoundBufferRecorder.hpp>

Inheritance diagram for sf::SoundBufferRecorder:
sf::SoundRecorder sf::Thread

Public Member Functions

const SoundBufferGetBuffer () const
 Get the sound buffer containing the captured audio data.
 
void Start (unsigned int SampleRate=44100)
 Start the capture.
 
void Stop ()
 Stop the capture.
 
unsigned int GetSampleRate () const
 Get the sample rate.
 

Static Public Member Functions

static bool CanCapture ()
 Tell if the system supports sound capture.
 

Detailed Description

Specialized SoundRecorder which saves the captured audio data into a sound buffer.

Definition at line 42 of file SoundBufferRecorder.hpp.

Member Function Documentation

static bool sf::SoundRecorder::CanCapture ( )
staticinherited

Tell if the system supports sound capture.

If not, this class won't be usable

Returns
True if audio capture is supported
const SoundBuffer& sf::SoundBufferRecorder::GetBuffer ( ) const

Get the sound buffer containing the captured audio data.

Returns
Constant reference to the sound buffer
unsigned int sf::SoundRecorder::GetSampleRate ( ) const
inherited

Get the sample rate.

Returns
Frequency, in samples per second
void sf::SoundRecorder::Start ( unsigned int  SampleRate = 44100)
inherited

Start the capture.

Warning : only one capture can happen at the same time

Parameters
SampleRate: Sound frequency (the more samples, the higher the quality) (44100 by default = CD quality)
void sf::SoundRecorder::Stop ( )
inherited

Stop the capture.


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