SDL++
C++wrapperfortheSDLlibrary.

sdl::audio::Wav Class Reference

Represents a wav file. More...

#include <Wav.h>

Collaboration diagram for sdl::audio::Wav:

List of all members.

Public Member Functions

 Wav (const string &fileName)
 ~Wav ()

Public Attributes

std::string name_
unsigned char * audioBuf_
unsigned int audioLen_
SDL_AudioSpec spec_

Detailed Description

Represents a wav file.

Definition at line 37 of file Wav.h.


Constructor & Destructor Documentation

sdl::audio::Wav::Wav ( const string &  fileName) [inline]

Opens the specified a wav file.

Parameters:
fileNameThe name of the wav file.
Exceptions:
runtime_errorThrows a runtime_error if the wav could not be loaded.

Definition at line 46 of file Wav.h.

sdl::audio::Wav::~Wav ( ) [inline]

Destroys a wav file.

Definition at line 58 of file Wav.h.


Member Data Documentation

The audio buffer.

Definition at line 68 of file Wav.h.

The length of the audio buffer.

Definition at line 73 of file Wav.h.

The name of the wav file.

Definition at line 58 of file Wav.h.

SDL_AudioSpec sdl::audio::Wav::spec_

The SDL_AudioSpec structure.

Definition at line 78 of file Wav.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs