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

SampleRaw Class Reference

Load and save a sample from a raw sample file. A raw sample file contains pcm samples and no headers. More...

#include <SampleRaw.h>

Inheritance diagram for SampleRaw

Inheritance graph
[legend]
Collaboration diagram for SampleRaw:

Collaboration graph
[legend]
List of all members.

Public Methods

 SampleRaw ()
 constructor.

virtual ~SampleRaw ()
 destructor.

virtual bool Load (const char *filename, Sample& sample)
 Simply reads the data straight nto the sample buffer. The interpretation of that data as either 16 bit, 8 bit, or stereo can be changed by setting the corresponding attributes of the Sample.

virtual bool Save (const char *filename, const Sample& sample)
 Save the sample to file as a raw audio.
Parameters:
filename   The naem of the file to save the sample to.
sample   The Sample to save.



Detailed Description

Load and save a sample from a raw sample file. A raw sample file contains pcm samples and no headers.


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