GlistEngine
Loading...
Searching...
No Matches
gBaseSound Class Referenceabstract

#include <gBaseSound.h>

Inheritance diagram for gBaseSound:
Collaboration diagram for gBaseSound:

Public Types

enum  LoopType : int { LOOPTYPE_DEFAULT = 0 , LOOPTYPE_NONE = 1 , LOOPTYPE_NORMAL = 2 }
 

Public Member Functions

virtual int load (const std::string &fullPath)=0
 
virtual int loadSound (const std::string &soundPath)=0
 
virtual void play ()=0
 
virtual bool isLoaded ()=0
 
virtual bool isPlaying ()=0
 
virtual void setPaused (bool isPaused)=0
 
virtual bool isPaused ()=0
 
virtual void stop ()=0
 
virtual void close ()=0
 
virtual int getDuration ()=0
 
virtual void setPosition (int position)=0
 
virtual int getPosition ()=0
 
virtual void setLoopType (LoopType loopType)=0
 
virtual LoopType getLoopType ()=0
 
virtual void setVolume (float volume)=0
 
virtual float getVolume ()=0
 
virtual const std::string & getPath ()=0
 
- Public Member Functions inherited from gObject
 gObject ()
 
void logi (std::string message)
 
void logd (std::string message)
 
void logw (std::string message)
 
void loge (std::string message)
 
void logi (std::string tag, std::string message)
 
void logd (std::string tag, std::string message)
 
void logw (std::string tag, std::string message)
 
void loge (std::string tag, std::string message)
 

Additional Inherited Members

- Static Public Member Functions inherited from gObject
static std::string gGetAppDir ()
 
static std::string gGetAssetsDir ()
 
static void gSetAssetsDir (std::string assetsDir)
 
static std::string gGetFilesDir ()
 
static std::string gGetImagesDir ()
 
static std::string gGetFontsDir ()
 
static std::string gGetModelsDir ()
 
static std::string gGetTexturesDir ()
 
static std::string gGetShadersDir ()
 
static std::string gGetSoundsDir ()
 
static std::string gGetDatabasesDir ()
 
static std::string gGetVideosDir ()
 
static void setCurrentResolution (int scalingNo, int currentResolutionNo)
 
- Static Public Attributes inherited from gObject
static const int LOGLEVEL_SILENT
 
static const int LOGLEVEL_DEBUG
 
static const int LOGLEVEL_INFO
 
static const int LOGLEVEL_WARNING
 
static const int LOGLEVEL_ERROR
 
- Static Protected Attributes inherited from gObject
static int renderpassnum
 
static int renderpassno
 
static int releasescaling
 
static int releaseresolution
 

Member Enumeration Documentation

◆ LoopType

Enumerator
LOOPTYPE_DEFAULT 
LOOPTYPE_NONE 
LOOPTYPE_NORMAL 

Member Function Documentation

◆ close()

virtual void gBaseSound::close ( )
pure virtual

Implemented in gSound.

◆ getDuration()

virtual int gBaseSound::getDuration ( )
pure virtual

Implemented in gSound.

◆ getLoopType()

virtual LoopType gBaseSound::getLoopType ( )
pure virtual

Implemented in gSound.

◆ getPath()

virtual const std::string & gBaseSound::getPath ( )
pure virtual

Implemented in gSound.

◆ getPosition()

virtual int gBaseSound::getPosition ( )
pure virtual

Implemented in gSound.

◆ getVolume()

virtual float gBaseSound::getVolume ( )
pure virtual

Implemented in gSound.

◆ isLoaded()

virtual bool gBaseSound::isLoaded ( )
pure virtual

Implemented in gSound.

◆ isPaused()

virtual bool gBaseSound::isPaused ( )
pure virtual

Implemented in gSound.

◆ isPlaying()

virtual bool gBaseSound::isPlaying ( )
pure virtual

Implemented in gSound.

◆ load()

virtual int gBaseSound::load ( const std::string &  fullPath)
pure virtual

Implemented in gSound.

◆ loadSound()

virtual int gBaseSound::loadSound ( const std::string &  soundPath)
pure virtual

Implemented in gSound.

◆ play()

virtual void gBaseSound::play ( )
pure virtual

Implemented in gSound.

◆ setLoopType()

virtual void gBaseSound::setLoopType ( LoopType  loopType)
pure virtual

Implemented in gSound.

◆ setPaused()

virtual void gBaseSound::setPaused ( bool  isPaused)
pure virtual

Implemented in gSound.

◆ setPosition()

virtual void gBaseSound::setPosition ( int  position)
pure virtual

Implemented in gSound.

◆ setVolume()

virtual void gBaseSound::setVolume ( float  volume)
pure virtual

Implemented in gSound.

◆ stop()

virtual void gBaseSound::stop ( )
pure virtual

Implemented in gSound.


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