# ReadSoundFile

Reads a sound file.

### Synopsis

`int32 ReadSoundFile( SoundFilePlayer *sfp, int32 Cursor,int32 BufIndex )`

### Description

This function is used internally to read part of the sound file into a buffer.

### Arguments

sfp
  A pointer to the SoundFilePlayer.

Cursor
  A value indicating where in the sound file the function is reading from.

BufIndex
  A value indicating which of the audio data buffers the function is reading from.

### 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

``ServiceSoundFile`()`