Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PSoundChannel::RecordSound ( PSound sound ) [inline, virtual]

Record into the sound object all of the buffer's of sound data. Use the SetBuffers() function to determine how long the recording will be made.

For the Win32 platform, the most efficient way to record a PSound is to use the SetBuffers() function to set a single buffer of the desired size and then do the recording. For Linux OSS this can cause problems as the buffers are rounded up to a power of two, so to gain more accuracy you need a number of smaller buffers.

Note that this function will block until all of the data is buffered. If you wish to do this asynchronously, use StartRecording() and AreAllrecordBuffersFull() to determine when you can call RecordSound() without blocking.

TRUE if the sound has been recorded.
soundSound recorded

Reimplemented in PSoundChannelDirectSound, PSoundChannelWin32, PSoundChannelBeOS, PSoundChannelCoreAudio, PSoundChannelALSA, PSoundChannelESD, PSoundChannelOSS, and PSoundChannelSunAudio.

Definition at line 707 of file sound.h.

References RecordSound().

Referenced by RecordSound().

    { return (baseChannel == NULL) ? FALSE : baseChannel->RecordSound(sound); }

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index