Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PSoundChannel::SetBuffers ( PINDEX  size,
PINDEX  count = 2 
) [inline, virtual]

Set the internal buffers for the sound channel I/O.

Note that with Linux OSS, the size is always rounded up to the nearest power of two, so 20000 => 32768.

TRUE if the sound device is valid for playing/recording.
size  Size of each buffer
count  Number of buffers

Definition at line 541 of file sound.h.

References SetBuffers().

Referenced by SetBuffers().

    { return (baseChannel == NULL) ? FALSE : baseChannel->SetBuffers(size, count); }

Generated by  Doxygen 1.6.0   Back to index