Previous Up Next

asSndLoad
Loading of a AsSnd into a Wave or Mp3 sound file.
This function (re)initializes the AsSnd in high-level mode.

AsSnd asSndLoad (
AsSnd _sound_
P _file_
I _flag_
)
Parameters

_sound_
Applicable AsSnd object
_file_
Wave or Mp3 file to be loaded.
_flag_
Creation flag.
Value Meaning
AS_SND_STATIC Sound loaded entirely in the AsSnd and thus in the machine’s memory.
AS_SND_STREAMING Loading of the sound is performed dynamically at the time of reading.
Return value

The AsSnd given as a parameter, or nil in case of a failure.
Remark

  • For a small noise having 3D properties, it is preferable to load it in a static manner.
  • The AsSnd’s sampling frequency is detected upon loading from the sound file.
  • Upon using this function and if the AsSnd has previously been used, all the audio data in the AsSnd will be removed from memory and thus lost for the user.