Representation of sound loaded that is streamed in as needed. More...
Data Fields | |
| sfxbuffer_t | buffer |
| int | error |
| an error occured while reading More... | |
| void * | file |
| handle for "file" representing the stream More... | |
| long(* | ll_read )(void *cb_data, float **data) |
| Read data from the stream. More... | |
| int(* | ll_seek )(sfxstream_t *stream, int pos) |
| Seek to an absolute position within the stream (low level). More... | |
| unsigned | pos |
| position of next frame full stream More... | |
| int(* | read )(sfxstream_t *stream, float *data, int frames) |
| Read data from the stream. More... | |
| int(* | seek )(sfxstream_t *stream, int pos) |
| Seek to an absolute position within the stream. More... | |
| sfx_t * | sfx |
| owning sfx_t instance More... | |
| void * | state |
| resampler state information More... | |
| wavinfo_t | wavinfo |
| description of sound data More... | |
Representation of sound loaded that is streamed in as needed.
| sfxbuffer_t buffer |
| int error |
an error occured while reading
| void* file |
handle for "file" representing the stream
| long(* ll_read)(void *cb_data, float **data) |
Read data from the stream.
This is a low-level function used by sfxstream_t::read. The read samples will be at the sample rate of the underlying stream.
| cb_data | stream relevant infomation (actually sfxstream_t ("this"), but this signature is used for compatibility with libsamplerate |
| data | address of pointer to be set to point to the buffer holding the samples |
| int(* ll_seek)(sfxstream_t *stream, int pos) |
Seek to an absolute position within the stream (low level).
| stream | "this" |
| pos | frame position with the stream |
| unsigned pos |
position of next frame full stream
| int(* read)(sfxstream_t *stream, float *data, int frames) |
Read data from the stream.
This is a high-level function for use in the mixer. The read samples will always at be the correct sample rate for the mixer, reguardless of the sample rate in the underlying stream.
| stream | "this" |
| data | destination of read data |
| frames | maximum number of frames to read from stream |
| int(* seek)(sfxstream_t *stream, int pos) |
Seek to an absolute position within the stream.
| stream | "this" |
| pos | frame position with the stream |
| sfx_t* sfx |
owning sfx_t instance
| void* state |
resampler state information
| wavinfo_t wavinfo |
description of sound data