Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Private Member Functions | Private Attributes
SFXImpl Class Reference

#include <sfx_openal.hpp>

Inheritance diagram for SFXImpl:
Inheritance graph
Collaboration diagram for SFXImpl:
Collaboration graph

List of all members.

Public Member Functions

 SFXImpl (const char *filename)
virtual ~SFXImpl ()
virtual void play ()
 SFXImpl (const char *filename)
virtual ~SFXImpl ()
virtual void play ()

Private Member Functions

bool load (const char *filename)

Private Attributes

ALuint m_soundBuffer
ALuint m_soundSource
slSample * m_sample

Detailed Description

Definition at line 33 of file sfx_openal.hpp.

Constructor & Destructor Documentation

SFXImpl::SFXImpl ( const char *  filename)

Definition at line 31 of file sound_plib.cpp.

    std::string path = loader->getPath(filename);
    m_sample= new slSample(path.c_str(), plib_scheduler);

Here is the call graph for this function:

SFXImpl::~SFXImpl ( ) [virtual]

Definition at line 38 of file sound_plib.cpp.

    delete m_sample;
SFXImpl::SFXImpl ( const char *  filename)
virtual SFXImpl::~SFXImpl ( ) [virtual]

Member Function Documentation

bool SFXImpl::load ( const char *  filename) [private]
virtual void SFXImpl::play ( ) [virtual]

Implements SFX.

void SFXImpl::play ( ) [virtual]

Implements SFX.

Definition at line 44 of file sound_plib.cpp.

    plib_scheduler->playSample(m_sample, 1, SL_SAMPLE_MUTE, 2, NULL);

Member Data Documentation

slSample* SFXImpl::m_sample [private]

Definition at line 39 of file sound_plib.hpp.

ALuint SFXImpl::m_soundBuffer [private]

Definition at line 44 of file sfx_openal.hpp.

ALuint SFXImpl::m_soundSource [private]

Definition at line 45 of file sfx_openal.hpp.

The documentation for this class was generated from the following files: