# StopSoundFile

Stops playing a sound file.

### Synopsis

`int32 StopSoundFile( SoundFilePlayer *sfp )`

### Description

This function stops playing a sound file.

### Arguments

sfp
  A pointer to the SoundFilePlayer data structure.

### 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(), StartSoundFile(), UnloadSoundFile(), CreateSoundFilePlayer()`