Torque Game EngineTorque Game Engine Documentation
Version 1.3.x

Commands and Functions

The following console commands and functions are listed in order as viewed in the output from ConsoleDoc.

OpenAlInitDriver (void); 

Used to initialize the sound driver. Returns a numeric value.

OpenAlShutdownDriver (void); 

Used to disable the sound driver. No return value

OpenAlRegisterExtensions (void); 

This function does not have a function body or any other associated engine or script code. No return value.

alGetString ( Alenum  enum );

Used to return the string representing the specified ALenum passed. Returns a string value.

alxCreateSource ( AudioProfile  profile [ ,
  int  x ,
  int  y ,
  int  z ] );
alxCreateSource ( AudioDescription  description ,
  string  filename [ ,
  int  x ,
  int  y ,
  int  z ] );

Creates and validates the Audio source (sound file) and readies it to be played. Returns a numeric value.

alxSourcef ( AudioHandle  handle ,
  Alenum  enum ,
  float  value );

Used to set the value of the Alenum for the specified handle. No return value.

alxSource3f ( AudioHandle  handle ,
  Alenum  enum ,
  { string  xyz ,
  int  x ,
  int  y ,
  int  z } );

Used to set the value of the Alenum for the specified handle. No return value.