| CRM64Pro GDK v0.15.0 A free cross-platform game development kit built on top of SDL 3.0

Loading...
Searching...
No Matches
CRM64Pro::AudioTrack
Audio module » AudioTrack

Audio Track object class. More...

## Detailed Description

Audio Track object class.

## Public Member Functions
bool | info (Sint32 iMode=0) override
| Request AudioTrack information.
const string & | getName () const override
| Get the name.
Uint32 | getID () const override
| Get the ID.
bool | getInfo (string *sType, AudioInfo *pAI) const
| Get AudioTrack detailed information.
bool | play (Sint32 iLoop=0)
| Play the track.
bool | fadeIn (Sint32 iTimeMS=1000, Sint32 iLoop=0)
| Play the track with a fade-in effect.
bool | fadeOut (Sint32 iTimeMS=1000)
| Fade out all instances of this track to silence, then stop.
bool | stop ()
| Immediately stop all instances of this track.
bool | pause ()
| Pause all instances of this track.
bool | resume ()
| Resume all instances of this track.
Sint32 | getPosition () const
| Get the current playback position.
bool | setPosition (Sint32 iTimeMS)
| Set the playback position (Seek).
bool | setPitch (float fPitch)
| Set Pitch (Frequency Ratio).
float | getPitch () const
| Get current pitch property.
bool | setPanning (Uint8 iLeft, Uint8 iRight)
| Set Stereo Panning.
bool | setLoopPoints (double dStartSec, double dEndSec)
| Set Loop Points.
bool | setDistance (Uint8 iDistance)
| Set 3D Distance Attenuation.
bool | setPosition3D (Sint16 iAngle, Uint8 iDistance)
| Set 3D Angular Position.
bool | setTag (eAudioTrackTag eTag)
| Set Track Tag category.
eAudioTrackTag | getTag () const
| Get Track Tag category.
Sint32 | saveToFile (const string &sFile)
| Export the AudioTrack to an external file.
Sint32 | save (const string &sCDCFile, const string &sResourceName="")
| Save the AudioTrack into a CDC file.
Sint32 | save (const Sint32 idCDC, const string &sResourceName="")
| Save the AudioTrack into a CDC file.