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

BOOL PWAVFile::Close (  )  [virtual]

Close the file channel. If a WAV file has been written to, this will update the header to contain the correct size information.

TRUE if close was OK.

Reimplemented from PFile.

Definition at line 402 of file pwavfile.cxx.

References PFile::Close(), PChannel::IsOpen(), and PWAVFileFormat::OnStop().

Referenced by Open(), and ~PWAVFile().

  if (autoConverter != NULL) {
    autoConverter = NULL;

  if (!PFile::IsOpen())
    return TRUE;

  if (header_needs_updating)

  if (formatHandler != NULL) 

  delete formatHandler;
  formatHandler = NULL;

  return PFile::Close();

Generated by  Doxygen 1.6.0   Back to index