My Project
Public Member Functions | List of all members
MySound Class Reference

MySound class. More...

#include <MySound.hpp>

Public Member Functions

 MySound (std::string const &texturePath)
 Construct a new My Sound object. More...
 
 ~MySound ()
 Destroy the My Sound object. More...
 
void play ()
 Play the sound. More...
 
void playMulti ()
 Play the sound using a multichannel buffer pool. More...
 
void stop ()
 Stop the sound. More...
 
void pause ()
 Pause the sound. More...
 
void resume ()
 Resume the sound. More...
 
bool isPlaying () const
 Check if the sound is playing. More...
 
void setVolume (float volume)
 Set the volume of the sound. More...
 

Detailed Description

MySound class.

Constructor & Destructor Documentation

◆ MySound()

MySound::MySound ( std::string const &  texturePath)

Construct a new My Sound object.

◆ ~MySound()

MySound::~MySound ( )

Destroy the My Sound object.

Member Function Documentation

◆ isPlaying()

bool MySound::isPlaying ( ) const

Check if the sound is playing.

Returns
true if the sound is playing
false if the sound is not playing

◆ pause()

void MySound::pause ( )

Pause the sound.

◆ play()

void MySound::play ( )

Play the sound.

◆ playMulti()

void MySound::playMulti ( )

Play the sound using a multichannel buffer pool.

◆ resume()

void MySound::resume ( )

Resume the sound.

◆ setVolume()

void MySound::setVolume ( float  volume)

Set the volume of the sound.

Parameters
volumevolume of the sound

◆ stop()

void MySound::stop ( )

Stop the sound.


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