# DeleteSoundFilePlayer

Deletes a SoundFilePlayer data structure.

### Synopsis

`int32 DeleteSoundFilePlayer( SoundFilePlayer *sfp )`

### Description

This function deletes a SoundFilePlayer data structure and cleans up after `CreateSoundFilePlayer()`. If the memory for the SoundFilePlayer was allocated by `CreateSoundFilePlayer()`, then the memory is returned to the system. If you allocated your own buffers, `DeleteSoundFilePlayer()` won't free the buffers; you must do it yourself.

### Arguments

sfp
  A pointer to the SoundFilePlayer.

### 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(), LoadSoundFile(), ReadSoundFile(), RewindSoundFile(), ServiceSoundFile(), StartSoundFile(), StopSoundFile(), UnloadSoundFile() CreateSoundFilePlayer()`