Previous Up Next

asSndCreate
Creation of an empty AsSnd in which we can:
- either load a sound file with asSndLoad (high-level use of the AsSnd)
- either load it manually with asSndInit and asSndFeed (low-level use of the AsSnd)

AsSnd asSndCreate (
Chn _channel_
I _flag_
)
Parameters

_channel_
Proprietary channel.
_flag_
Creation flag allowing to define the controls that can be used at a later time. Can have the following values:
Value Meaning
AS_SND_CTRLFREQUENCY The sound frequency can be modified.
AS_SND_CTRLPAN The balance from one speaker to the other can be modified (panoramic sound).
This flag is incompatible with the AS_SND_CTRL3 flag.
AS_SND_CTRL3D The sound has 3D control possibilities.
This flag is incompatible with the AS_SND_CTRLPAN flag.
Return value

The AsSnd newly created, or nil if the creation failed.
Remark

By default, the volume of the AsSnd is set at 75 on a scale from 0 to 100 and its balance is set at 0 on a scale from 0 to 100.
See Also

asSndLoad, asSndFeed, asSndDestroy