Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PWAVFile::Read ( void *  buf,
PINDEX  len 
) [virtual]

Call PFile::Read() to read in audio data and perform necessary processing such as byte-order swaping.

Returns:
TRUE indicates that at least one character was read from the channel. FALSE means no bytes were read due to timeout or some other I/O error.
Parameters:
buf  Pointer to a block of memory to receive the read bytes.
len  Maximum number of bytes to read into the buffer.

Reimplemented from PFile.

Definition at line 430 of file pwavfile.cxx.

References PWAVFileConverter::Read().

{
  if (autoConverter != NULL)
    return autoConverter->Read(*this, buf, len);

  return RawRead(buf, len);
}


Generated by  Doxygen 1.6.0   Back to index