Dark AL Commands

DarkAL acts as an interface library between DBPro and the Open Audio Library (OpenAL). All of the commands listed here give you the power to truely take control of audio in your games, including 3D doppler sound effects, audio capturing, hardware acceleration, EAX legacy support and support for EFX 1.0, a more up-to-date version of the old EAX audio effects. BASIC COMMANDS SOUND COMMANDS LISTENER COMMANDS ERROR MANAGEMENT COMMANDS AUDIO DEVICE COMMANDS CAPTURE DEVICE COMMANDS AVAILABILITY COMMANDS Alternatively, scroll the page to view the entire list of commands.
    BASIC COMMANDS

    AL START : AL START useDefault *no parameters*
    AL SET MASTER VOLUME : AL SET MASTER VOLUME volume
    AL DELETE ALL SOUNDS : AL DELETE ALL SOUNDS *no parameters*
    AL STOP ALL SOUNDS : AL STOP ALL SOUNDS *no parameters*
    AL PAUSE ALL SOUNDS : AL PAUSE ALL SOUNDS *no parameters*
    AL PLAY ALL SOUNDS : AL PLAY ALL SOUNDS *no parameters*
    AL SET DISTANCE MODEL : AL SET DISTANCE MODEL distanceModel

    AL STARTED : return boolean = AL STARTED useDefault( *no parameters* )
    AL GET MASTER VOLUME : return integer = AL GET MASTER VOLUME ( *no parameters* )
    AL ACTIVE SOUNDS : return integer = AL ACTIVE SOUNDS ( *no parameters* )
    AL MAX ACTIVE SOUNDS : return integer = AL MAX ACTIVE SOUNDS ( *no parameters* )
    AL GET DISTANCE MODEL : return integer = AL GET DISTANCE MODEL ( *no parameters* )
    AL VERSION$ : return integer = AL VERSION$ ( *no parameters* )
    AL VENDOR$ : return integer = AL VENDOR$ ( *no parameters* )
    AL RENDERER$ : return integer = AL RENDERER$ ( *no parameters* )

    SOUND COMMANDS

    AL LOAD SOUND : AL LOAD SOUND sound number, filename, streaming
    AL MAKE SOUND FROM MEMORY : AL MAKE SOUND FROM MEMORY soundNumber, memoryPointer, bytes, frequency, format
    AL PLAY SOUND : AL PLAY SOUND sound number
    AL STOP SOUND : AL STOP SOUND sound number
    AL SEEK SOUND : AL SEEK SOUND sound number, seconds, relative
    AL PAUSE SOUND : AL PAUSE SOUND sound number
    AL DELETE SOUND : AL DELETE SOUND sound number
    AL SET SOUND VOLUME : AL SET SOUND VOLUME sound number, volume
    AL SET SOUND VOLUME MIN : AL SET SOUND VOLUME MIN sound number, volume
    AL SET SOUND VOLUME MAX : AL SET SOUND VOLUME MAX sound number, volume
    AL POSITION SOUND : AL POSITION SOUND sound number, x, y, z
    AL SET SOUND LOOPING : AL SET SOUND LOOPING sound number, looping
    AL SET SOUND STRENGTH : AL SET SOUND STRENGTH sound number, strength
    AL SET SOUND MIN DISTANCE : AL SET SOUND MIN DISTANCE sound number, distance
    AL SET SOUND MAX DISTANCE : AL SET SOUND MAX DISTANCE sound number, distance
    AL SET SOUND DIRECTION : AL SET SOUND DIRECTION sound number, x, y, z
    AL SET SOUND SPEED : AL SET SOUND SPEED sound number, speed
    AL SET SOUND VELOCITY : AL SET SOUND VELOCITY sound number, x, y, z
    AL MOVE SOUND TO : AL MOVE SOUND TO sound number, x, y, z
    AL SET SOUND OUTER CONE ANGLE : AL SET SOUND OUTER CONE ANGLE sound number, angle
    AL SET SOUND INNER CONE ANGLE : AL SET SOUND INNER CONE ANGLE sound number, angle

    AL GET SOUND PLAYING : return integer = AL GET SOUND PLAYING( sound number )
    AL GET SOUND PAUSED : return integer = AL GET SOUND PAUSED ( sound number )
    AL GET SOUND VOLUME : return float = AL GET SOUND VOLUME ( sound number )
    AL GET SOUND VOLUME MIN : return float = AL GET SOUND VOLUME MIN ( sound number )
    AL GET SOUND VOLUME MAX : return float = AL GET SOUND VOLUME MAX ( sound number )
    AL GET SOUND POSITION X : return float = AL GET SOUND POSITION X ( sound number )
    AL GET SOUND POSITION Y : return float = AL GET SOUND POSITION Y ( sound number )
    AL GET SOUND POSITION Z : return float = AL GET SOUND POSITION Z ( sound number )
    AL GET SOUND LOOPING : return integer = AL GET SOUND LOOPING ( sound number )
    AL GET SOUND STRENGTH : return float = AL GET SOUND STRENGTH ( sound number )
    AL GET SOUND MIN DISTANCE : return float = AL GET SOUND MIN DISTANCE ( sound number )
    AL GET SOUND MAX DISTANCE : return float = AL GET SOUND MAX DISTANCE ( sound number )
    AL GET SOUND DIRECTION X : return float = AL GET SOUND DIRECTION X ( sound number )
    AL GET SOUND DIRECTION Y : return float = AL GET SOUND DIRECTION Y ( sound number )
    AL GET SOUND DIRECTION Z : return float = AL GET SOUND DIRECTION Z ( sound number )
    AL GET SOUND SPEED : return float = AL GET SOUND SPEED ( sound number )
    AL GET SOUND VELOCITY X : return float = AL GET SOUND VELOCITY X ( sound number )
    AL GET SOUND VELOCITY Y : return float = AL GET SOUND VELOCITY Y ( sound number )
    AL GET SOUND VELOCITY Z : return float = AL GET SOUND VELOCITY Z ( sound number )
    AL GET SOUND OUTER CONE VOLUME : return float = AL GET SOUND OUTER CONE VOLUME ( sound number )
    AL GET SOUND SIZE : return integer = AL GET SOUND SIZE ( sound number, comSize )
    AL GET SOUND BYTE : return integer = AL GET SOUND BYTE ( sound number )
    AL GET SOUND TIME : return float = AL GET SOUND TIME ( sound number )
    AL GET SOUND TOTAL TIME : return float = AL GET SOUND TOTAL TIME ( sound number )
    AL GET SOUND SEEKING SUPPORT : Return Integer=AL GET SOUND SEEKING SUPPORT( sound number )
    AL GET SOUND FREQUENCY : return integer = AL GET SOUND FREQUENCY ( sound number )
    AL GET SOUND FORMAT : return integer = AL GET SOUND FORMAT ( sound number )
    AL GET SOUND OUTER CONE ANGLE : return float = AL GET SOUND OUTER CONE ANGLE ( sound number )
    AL GET SOUND INNER CONE ANGLE : return float = AL GET SOUND INNER CONE ANGLE ( sound number )

    LISTENER COMMANDS

    AL POSITION LISTENER : AL POSITION LISTENER x, y, z
    AL MOVE LISTENER TO : AL MOVE LISTENER TO x, y, z
    AL SET LISTENER MPU : AL SET LISTENER MPU metres per unit
    AL SET LISTENER VELOCITY : AL SET LISTENER VELOCITY x, y, z
    AL SET LISTENER DIRECTION : AL SET LISTENER DIRECTION x, y, z

    AL GET LISTENER POSITION X : return float = AL GET LISTENER POSITION X ( *no parameters* )
    AL GET LISTENER POSITION Y : return float = AL GET LISTENER POSITION Y ( *no parameters* )
    AL GET LISTENER POSITION Z : return float = AL GET LISTENER POSITION Z ( *no parameters* )
    AL GET LISTENER MPU : return float = AL GET LISTENER MPU ( *no parameters* )
    AL GET LISTENER VELOCITY X : return float = AL GET LISTENER VELOCITY X ( *no parameters* )
    AL GET LISTENER VELOCITY Y : return float = AL GET LISTENER VELOCITY Y ( *no parameters* )
    AL GET LISTENER VELOCITY Z : return float = AL GET LISTENER VELOCITY Z ( *no parameters* )
    AL GET LISTENER DIRECTION X : return float = AL GET LISTENER DIRECTION X ( *no parameters* )
    AL GET LISTENER DIRECTION Y : return float = AL GET LISTENER DIRECTION Y ( *no parameters* )
    AL GET LISTENER DIRECTION Z : return float = AL GET LISTENER DIRECTION Z ( *no parameters* )

    ERROR COMMANDS

    AL ERROR RESET : AL ERROR RESET *no parameters*
    AL ERROR : return integer = AL ERROR ( *no parameters* )

    AUDIO DEVICE COMMANDS

    AL SET AUDIO DEVICE : AL SET AUDIO DEVICE device number

    AL DEFAULT AUDIO DEVICE NAME$ : return string = AL DEFAULT AUDIO DEVICE NAME$( *no parameters* )
    AL HAS DEFAULT AUDIO DEVICE : return boolean = AL HAS DEFAULT AUDIO DEVICE( *no parameters* )
    AL AUDIO DEVICE NAME$ : return string = AL AUDIO DEVICE NAME$( device number )
    AL AUDIO DEVICE COUNT : return integer = AL AUDIO DEVICE COUNT( device number )
    AL CURRENT AUDIO DEVICE INDEX : return integer = AL CURRENT AUDIO DEVICE INDEX( device number )
    AL AUDIO DEVICE INITIALIZED : return boolean = AL AUDIO DEVICE INITIALIZED ( *no parameters* )

    CAPTURE DEVICE COMMANDS

    AL START CAPTURE : AL START CAPTURE *no parameters*
    AL STOP CAPTURE : AL STOP CAPTURE *no parameters*
    AL SET CAPTURE DEVICE : AL SET CAPTURE DEVICE device number
    AL SET CAPTURE FREQUENCY : AL SET CAPTURE FREQUENCY frequency
    AL SET CAPTURE FORMAT : AL SET CAPTURE FORMAT format
    AL MAKE SOUND FROM CAPTURE : AL MAKE SOUND FROM CAPTURE sound number

    AL CAPTURE DEVICE INITIALIZED : return boolean = AL CAPTURE DEVICE INITIALIZED ( *no parameters* )
    AL CAPTURE DEVICE COUNT : return integer = AL CAPTURE DEVICE COUNT( *no parameters* )
    AL CURRENT CAPTURE DEVICE INDEX : return integer = AL CURRENT CAPTURE DEVICE INDEX( *no parameters* )
    AL DEFAULT CAPTURE DEVICE NAME$ : return string = AL DEFAULT CAPTURE DEVICE NAME$( *no parameters* )
    AL HAS DEFAULT CAPTURE DEVICE : return boolean = AL HAS DEFAULT CAPTURE DEVICE( *no parameters* )
    AL CAPTURE DEVICE NAME$ : return string = AL CAPTURE DEVICE NAME$( device number )
    AL GET CAPTURE FREQUENCY : return integer = AL GET CAPTURE FREQUENCY( *no parameters* )
    AL GET CAPTURE FORMAT : return integer = AL GET CAPTURE FORMAT( *no parameters* )
    AL GET CAPTURE SAMPLE SIZE : return integer = AL GET CAPTURE SAMPLE SIZE( *no parameters* )
    AL CAPTURED AUDIO SIZE : return double integer = AL CAPTURED AUDIO SIZE( *no parameters* )
    AL CAPTURING : return boolean = AL CAPTURING( *no parameters* )

    AVAILABILITY COMMANDS

    AL LOW PASS FILTER SUPPORT : return boolean = AL LOW PASS FILTER SUPPORT( *no parameters* )
    AL HIGH PASS FILTER SUPPORT : return boolean = AL HIGH PASS FILTER SUPPORT( *no parameters* )
    AL BAND PASS FILTER SUPPORT : return boolean = AL BAND PASS FILTER SUPPORT( *no parameters* )

    AL EQUALIZER SUPPORT : return boolean = AL EQUALIZER SUPPORT( *no parameters* )
    AL COMPRESSOR SUPPORT : return boolean = AL COMPRESSOR SUPPORT( *no parameters* )
    AL AUTOWAH SUPPORT : return boolean = AL AUTOWAH SUPPORT( *no parameters* )
    AL RING MODULATOR SUPPORT : return boolean = AL RING MODULATOR SUPPORT( *no parameters* )
    AL PITCH SHIFTER SUPPORT : return boolean = AL PITCH SHIFTER SUPPORT( *no parameters* )
    AL VOCAL MORPHER SUPPORT : return boolean = AL VOCAL MORPHER SUPPORT( *no parameters* )
    AL FREQUENCY SHIFTER SUPPORT : return boolean = AL FREQUENCY SHIFTER SUPPORT( *no parameters* )
    AL FLANGER SUPPORT : return boolean = AL FLANGER SUPPORT( *no parameters* )
    AL ECHO SUPPORT : return boolean = AL ECHO SUPPORT( *no parameters* )
    AL DISTORTION SUPPORT : return boolean = AL DISTORTION SUPPORT( *no parameters* )
    AL CHORUS SUPPORT : return boolean = AL CHORUS SUPPORT( *no parameters* )
    AL REVERB SUPPORT : return boolean = AL REVERB SUPPORT( *no parameters* )
    AL EAX REVERB SUPPORT : return boolean = AL EAX REVERB SUPPORT( *no parameters* )

    AL EFX SUPPORT : return boolean = AL EFX SUPPORT( *no parameters* )
    AL EFX MAJOR VERSION : return integer = AL EFX MAJOR VERSION( *no parameters* )
    AL EFX MINOR VERSION : return integer = AL EFX MINOR VERSION( *no parameters* )
    AL EAX ONE SUPPORT : return boolean = AL EAX ONE SUPPORT( *no parameters* )
    AL EAX TWO SUPPORT : return boolean = AL EAX TWO SUPPORT( *no parameters* )
    AL EAX THREE SUPPORT : return boolean = AL EAX THREE SUPPORT( *no parameters* )
    AL EAX THREE EMULATE SUPPORT : return boolean = AL EAX THREE EMULATE SUPPORT( *no parameters* )
    AL EAX FOUR SUPPORT : return boolean = AL EAX FOUR SUPPORT( *no parameters* )
    AL EAX FOUR EMULATE SUPPORT : return boolean = AL EAX FOUR EMULATE SUPPORT( *no parameters* )
    AL EAX FIVE SUPPORT : return boolean = AL EAX FIVE SUPPORT( *no parameters* )
    AL EAX EXTENSIONS$ : return boolean = AL EAX EXTENSIONS$( *no parameters* )

    AL FIND FREE SOUND : return integer = AL FIND FREE SOUND ( *no parameters* )
    AL SOUND EXIST : return boolean = AL SOUND EXIST ( sound number )