Represents a sound file.
More...
#include <Sound.h>
|
| | SoundFile (SoundSystem *_pSndSys, const std::string &_filePath, bool _bLoop, float _coneDir, float _conePitch, float _coneInAngle, float _coneOutAngle, float _coneOutVol) |
| | Construct a sound object from a file name and have it loaded asynchonously.
|
| |
| virtual | ~SoundFile () |
| | Make sure destructor is virtual.
|
| |
| | SoundFile (const SoundFile &o)=delete |
| | Copying is not permitted.
|
| |
| bool | hasConeInfo () const |
| | Has full cone information?
|
| |
| virtual bool | isReady ()=0 |
| | Ready to play?
|
| |
|
| SoundSystem * | pSndSys = nullptr |
| | Sound system for which this object was created.
|
| |
| std::string | filePath |
| | File path to sound file.
|
| |
| bool | bLoop = true |
| | sound to be played in a loop?
|
| |
| float | coneDir = NAN |
| | Which direction relative to plane's heading does the cone point to? (180 would be typical for jet engines)
|
| |
| float | conePitch = NAN |
| | Which pitch does the cone point to (up/down)? (0 would be typical, ie. level with the plane)
|
| |
| float | coneInAngle = NAN |
| | Inside cone angle. This is the angle spread within which the sound is unattenuated.
|
| |
| float | coneOutAngle = NAN |
| | Outside cone angle. This is the angle spread outside of which the sound is attenuated to its SoundFile::coneOutVol.
|
| |
| float | coneOutVol = NAN |
| | Cone outside volume.
|
| |
◆ SoundFile() [1/2]
| XPMP2::SoundFile::SoundFile |
( |
SoundSystem * | _pSndSys, |
|
|
const std::string & | _filePath, |
|
|
bool | _bLoop, |
|
|
float | _coneDir, |
|
|
float | _conePitch, |
|
|
float | _coneInAngle, |
|
|
float | _coneOutAngle, |
|
|
float | _coneOutVol ) |
Construct a sound object from a file name and have it loaded asynchonously.
- Exceptions
-
| FmodError | in case of errors during CreateSound |
◆ ~SoundFile()
| virtual XPMP2::SoundFile::~SoundFile |
( |
| ) |
|
|
inlinevirtual |
Make sure destructor is virtual.
◆ SoundFile() [2/2]
| XPMP2::SoundFile::SoundFile |
( |
const SoundFile & | o | ) |
|
|
delete |
Copying is not permitted.
◆ hasConeInfo()
| bool XPMP2::SoundFile::hasConeInfo |
( |
| ) |
const |
|
inline |
Has full cone information?
◆ isReady()
| virtual bool XPMP2::SoundFile::isReady |
( |
| ) |
|
|
pure virtual |
◆ bLoop
| bool XPMP2::SoundFile::bLoop = true |
sound to be played in a loop?
◆ coneDir
| float XPMP2::SoundFile::coneDir = NAN |
Which direction relative to plane's heading does the cone point to? (180 would be typical for jet engines)
◆ coneInAngle
| float XPMP2::SoundFile::coneInAngle = NAN |
Inside cone angle. This is the angle spread within which the sound is unattenuated.
◆ coneOutAngle
| float XPMP2::SoundFile::coneOutAngle = NAN |
Outside cone angle. This is the angle spread outside of which the sound is attenuated to its SoundFile::coneOutVol.
◆ coneOutVol
| float XPMP2::SoundFile::coneOutVol = NAN |
◆ conePitch
| float XPMP2::SoundFile::conePitch = NAN |
Which pitch does the cone point to (up/down)? (0 would be typical, ie. level with the plane)
◆ filePath
| std::string XPMP2::SoundFile::filePath |
◆ pSndSys
Sound system for which this object was created.
The documentation for this class was generated from the following files: