2015-11-22 08:32:19 +00:00
|
|
|
//------------------------------------------------------------------------------
|
2015-11-28 20:37:20 +00:00
|
|
|
// audioFunctions.cs
|
2015-11-22 08:32:19 +00:00
|
|
|
//
|
|
|
|
|
// Various helper functions that many Tribes 2 scripts expect to exist which
|
|
|
|
|
// can be implemented wholly in script. Those that must perform more
|
|
|
|
|
// sophisicated engines must be implemented as engine functions.
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
function alxCreateSource(%profile, %file)
|
|
|
|
|
{
|
|
|
|
|
%handle = sfxCreateSource(%profile, %file);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function alxPlay(%handle)
|
|
|
|
|
{
|
|
|
|
|
%handle.play(-1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function alxGetWaveLen(%file)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|