Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

SampleWav Class Reference

Load and Save a WAVE file. More...

#include <SampleWav.h>

Inheritance diagram for SampleWav

Inheritance graph
[legend]
Collaboration diagram for SampleWav:

Collaboration graph
[legend]
List of all members.

Public Methods

 SampleWav ()
virtual ~SampleWav ()
virtual bool Load (const char *filename, Sample& sample)
 Load the sample file with the given filename.

virtual bool Save (const char *filename, const Sample& sample)
 The sample data must end on an even byte boundary. More...


Detailed Description

Load and Save a WAVE file.

Includes acm support for windows.


Member Function Documentation

bool SampleWav::Save ( const char * filename,
const Sample & sample ) [virtual]
 

The sample data must end on an even byte boundary.

All numeric data fields are in the Intel format of low-high byte ordering. 8-bit samples are stored as unsigned bytes, ranging from 0 to 255. 16-bit samples are stored as 2's-complement signed integers, ranging from -32768 to 32767.

Reimplemented from SampleIO.


The documentation for this class was generated from the following files:
Generated at Mon Nov 27 01:47:16 2000 for LibPenguinPlay by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000