coastline 0.0.4
Loading...
Searching...
No Matches
soundsampleinput.h File Reference
Include dependency graph for soundsampleinput.h:

Go to the source code of this file.

Functions

int LoadSoundBufferSample (const char *path, SoundBufferNode *node, int sample)
 Read a sample into a sound buffer node.

Function Documentation

◆ LoadSoundBufferSample()

int LoadSoundBufferSample ( const char * path,
SoundBufferNode * node,
int sample )

Read a sample into a sound buffer node.

Parameters
pathThe path of the wave file.
nodeReceives the sample data and format.
sampleThe race sample index, used by the SDL sound selection.
Returns
0 on success, or a nonzero error.