StartSoundFile

Begins playing a sound file.

Synopsis

int32 StartSoundFile( SoundFilePlayer *sfp, int32 Amplitude )

Description

This function begins playing a sound file.

Arguments

sfp
A pointer to the SoundFilePlayer data structure controlling playback.
Amplitude
A value indicating the amplitude at which to play the sound file; the value is from 0 to $7FFF.

Return Value

This function returns 0 if successful or an error code (a negative value) if an error occurs.

Implementation

Library call implemented in music.lib V20.

Associated Files

soundfile.h, music.lib

See Also

OpenSoundFile(), CloseSoundFile(), DeleteSoundFilePlayer(), LoadSoundFile(), ReadSoundFile(), RewindSoundFile(), ServiceSoundFile(), StopSoundFile(), UnloadSoundFile(), CreateSoundFilePlayer()