Obsolete Sound Functions

These functions deal with sound effects and 3D sounds.

Function List:

FunctionDescription
sound_effect_setSets a (combination of) sound effect(s) for the indicated sound. effect can be any of the constants listed below.
sound_effect_chorusSets the parameters for the chorus effect for the indicated sound.
sound_effect_echoSets the parameters for the echo effect for the indicated sound.
sound_effect_flangerSets the parameters for the flanger effect for the indicated sound.
sound_effect_gargleSets the parameters for the gargle effect for the indicated sound.
sound_effect_reverbSets the parameters for the reverb effect for the indicated sound.
sound_effect_compressorSets the parameters for the compressor effect for the indicated sound.
sound_effect_equalizerSets the parameters for the equalizer effect for the indicated sound.
sound_3d_set_sound_positionSets the position of the indicated sound with respect to the listener to the indicated position in space.
sound_3d_set_sound_velocitySets the velocity of the indicated sound to the indicated vector in space.
sound_3d_set_sound_distanceSets the minimum distance at which the sound does no longer increase in loudness and the maximum distance at which the sound can no longer be heard.
sound_3d_set_sound_coneNormally sound has the same amplitude at a given distance in all directions. You can set the sound cone to change this and make sound directional.
sound_get_preloadReturns whether the sound with the given index has preload set.
sound_restoreRestores the indicated sound in audio memory for immediate playing.
sound_discardFrees the audio memory used for the indicated sound.
sound_background_tempoChanges the tempo of the background music (if it is a midi file).
sound_set_search_directorySets the directory in which direct music files are to be found. The dir string should not include the final backslash.
sound_panChanges the pan for the indicated sound (-1 = left, 0 = center, 1 = right).

The following constants have also been removed:

Why These Are Obsolete

These were Windows only functions and are no longer applicable to any other device.


Back: Obsolete Functions
Next: mPlay Functions

© Copyright YoYo Games Ltd. 2018 All Rights Reserved