![]() |
![]() ![]() ![]() |
DLL_API FSOUND_STREAM * F_API FSOUND_Stream_Create(
FSOUND_STREAMCALLBACK callback,
int length,
unsigned int mode,
int samplerate,
int userdata
);
callback | A pointer to a user defined stream callback function. An example of the callback function would look like this. void streamcallback(FSOUND_STREAM *stream, void *buff, int len, int param) { return TRUE; } len in this callback is specified in BYTES. The return value is whether to end the stream or not. Returning FALSE will terminate the stream. |
length | Size of the data in BYTES the callback will require to be written to the buffer. |
mode | Description of the raw sample data being opened. see FSOUND_MODES for a description of these modes. |
samplerate | Rate of playback. Be careful you dont set the sample rate too high so that the stream servicer (ie harddisk) cant keep up. A sound that has a default rate of 44.1khz that is played at 132khz will have to read the hard disk 3 times faster than normal. |
userdata | data value that is passed into the stream callback when playing. |