CRM64Pro GDK v0.13.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
CRM64Pro::AudioTrack

Audio Track object class. More...

Detailed Description

Audio Track object class.

Public Member Functions

Sint32 info (Sint32 iMode=0)
 Request AudioTrack information.
Sint32 getName (string &sName)
 Get the name.
Uint32 getID ()
 Get the ID.
Sint32 getInfo (string *sType, AudioInfo *pAI) const
 Get AudioTrack detailed information.
Sint32 play (Sint32 iLoop=0)
 Play the track.
Sint32 fadeIn (Sint32 iTimeMS=1000, Sint32 iLoop=0)
 Play the track with a fade-in effect.
Sint32 fadeOut (Sint32 iTimeMS=1000)
 Fade out all instances of this track to silence, then stop.
Sint32 stop ()
 Immediately stop all instances of this track.
Sint32 pause ()
 Pause all instances of this track.
Sint32 resume ()
 Resume all instances of this track.
Sint32 getPosition ()
 Get the current playback position.
Sint32 setPosition (Sint32 iTimeMS)
 Set the playback position (Seek).
Sint32 setPitch (float fPitch)
 Set Pitch (Frequency Ratio).
float getPitch () const
 Get current pitch property.
Sint32 setPanning (Uint8 iLeft, Uint8 iRight)
 Set Stereo Panning.
Sint32 setLoopPoints (double dStartSec, double dEndSec)
 Set Loop Points.
Sint32 setDistance (Uint8 iDistance)
 Set 3D Distance Attenuation.
Sint32 setPosition3D (Sint16 iAngle, Uint8 iDistance)
 Set 3D Angular Position.
Sint32 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 &sFileCDC)
 Save the AudioTrack into a CDC file.
Sint32 save (Sint32 idCDC)
 Save the AudioTrack into a CDC file.