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

BOOL PSoundChannelSunAudio::WaitForRecordBufferFull (  ) [virtual]

Block the thread until a record buffer has been filled, so that the next Read() call will not block. Provided that the amount of data read is less than the buffer size.

Returns:
TRUE if the sound driver has filled a buffer.

Reimplemented from PSoundChannel.

Definition at line 466 of file sound_sunaudio.cxx.

References PChannel::NotOpen, PChannel::readTimeout, and PChannel::SetErrorValues().

Referenced by WaitForAllRecordBuffersFull().

{
  if (os_handle < 0)
    return SetErrorValues(NotOpen, EBADF);

  return PXSetIOBlock(PXReadBlock, readTimeout);
}

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