Captures audio data.
More...
#include <OgreOggSoundRecord.h>
Captures audio data.
- Default file properties are - Frequency: 44.1Khz, Format: 16-bit stereo, Buffer Size: 8820 bytes.
- Note
- This class should be instantiated by using the OgreOggSoundManager::createRecorder() function.
◆ OgreOggSoundRecord()
| OgreOggSound::OgreOggSoundRecord::OgreOggSoundRecord |
( |
ALCdevice & |
alDevice | ) |
|
◆ ~OgreOggSoundRecord()
| OgreOggSound::OgreOggSoundRecord::~OgreOggSoundRecord |
( |
| ) |
|
Closes capture device, outputs captured data to a file if available.
◆ _openDevice()
| bool OgreOggSound::OgreOggSoundRecord::_openDevice |
( |
| ) |
|
|
private |
Initialises a capture device ready to record audio data
◆ _updateRecording()
| void OgreOggSound::OgreOggSoundRecord::_updateRecording |
( |
| ) |
|
|
private |
Updates recording from the capture device
◆ initCaptureDevice()
| bool OgreOggSound::OgreOggSoundRecord::initCaptureDevice |
( |
const Ogre::String & |
devName = "", |
|
|
const Ogre::String & |
fileName = "output.wav", |
|
|
ALCuint |
freq = 44100, |
|
|
ALCenum |
format = AL_FORMAT_STEREO16, |
|
|
ALsizei |
bufferSize = 8820 |
|
) |
| |
◆ isCaptureAvailable()
| bool OgreOggSound::OgreOggSoundRecord::isCaptureAvailable |
( |
| ) |
|
Returns whether the ALC_EXT_CAPTURE extension is available for the OpenAL implementation being used
◆ startRecording()
| void OgreOggSound::OgreOggSoundRecord::startRecording |
( |
| ) |
|
Starts a recording from a capture device
◆ stopRecording()
| void OgreOggSound::OgreOggSoundRecord::stopRecording |
( |
| ) |
|
Stops recording from the capture device
◆ OgreOggSoundManager
◆ mBitsPerSample
| unsigned short OgreOggSound::OgreOggSoundRecord::mBitsPerSample |
|
private |
◆ mBuffer
| ALchar* OgreOggSound::OgreOggSoundRecord::mBuffer |
|
private |
◆ mBufferSize
| ALsizei OgreOggSound::OgreOggSoundRecord::mBufferSize |
|
private |
◆ mCaptureDevice
| ALCdevice* OgreOggSound::OgreOggSoundRecord::mCaptureDevice |
|
private |
◆ mContext
| ALCcontext* OgreOggSound::OgreOggSoundRecord::mContext |
|
private |
◆ mDataSize
| ALint OgreOggSound::OgreOggSoundRecord::mDataSize |
|
private |
◆ mDefaultCaptureDevice
| const ALCchar* OgreOggSound::OgreOggSoundRecord::mDefaultCaptureDevice |
|
private |
◆ mDevice
| ALCdevice* OgreOggSound::OgreOggSoundRecord::mDevice |
|
private |
◆ mDeviceName
◆ mFile
| std::ofstream OgreOggSound::OgreOggSoundRecord::mFile |
|
private |
◆ mFormat
| ALCenum OgreOggSound::OgreOggSoundRecord::mFormat |
|
private |
◆ mFreq
| ALCuint OgreOggSound::OgreOggSoundRecord::mFreq |
|
private |
◆ mNumChannels
| unsigned short OgreOggSound::OgreOggSoundRecord::mNumChannels |
|
private |
◆ mOutputFile
◆ mRecording
| bool OgreOggSound::OgreOggSoundRecord::mRecording |
|
private |
◆ mSamplesAvailable
| ALint OgreOggSound::OgreOggSoundRecord::mSamplesAvailable |
|
private |
◆ mSize
| ALint OgreOggSound::OgreOggSoundRecord::mSize |
|
private |
◆ mWaveHeader
| WAVEHEADER OgreOggSound::OgreOggSoundRecord::mWaveHeader |
|
private |
The documentation for this class was generated from the following file: