Public Member Functions

xl7::directsound::wav::Wave Class Reference

#include <Wave.h>

List of all members.

Public Member Functions

 Wave (void)
 ~Wave (void)
 Wave (const Wave &rhs)
Waveoperator= (const Wave &rhs)
const WAVEFORMATEX & GetFormat () const
const char * GetDataBuffer () const
unsigned GetBufferSize () const
bool LoadFromFile (const cl7::string_type &file_name)
bool LoadFrom (io::IRom &rom, const cl7::string_type &rom_name=TEXT(""))

Detailed Description

The waveform (WAVE) audio file format.


Constructor & Destructor Documentation

xl7::directsound::wav::Wave::Wave ( void   ) 

Default constructor.

xl7::directsound::wav::Wave::~Wave ( void   ) 

Destructor.

xl7::directsound::wav::Wave::Wave ( const Wave rhs  ) 

Copy constructor.


Member Function Documentation

unsigned xl7::directsound::wav::Wave::GetBufferSize (  )  const [inline]

Returns the size, in bytes, of the data buffer.

const char* xl7::directsound::wav::Wave::GetDataBuffer (  )  const [inline]

Returns the data buffer.

const WAVEFORMATEX& xl7::directsound::wav::Wave::GetFormat (  )  const [inline]

Returns the format of the waveform-audio data.

bool xl7::directsound::wav::Wave::LoadFrom ( io::IRom rom,
const cl7::string_type rom_name = TEXT("") 
)

Loads the waveform from any rom.

bool xl7::directsound::wav::Wave::LoadFromFile ( const cl7::string_type file_name  ) 

Loads the waveform from a file in the file system.

Wave & xl7::directsound::wav::Wave::operator= ( const Wave rhs  ) 

Copy assignment operator.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines