|
Kore 3
|
Sound-Streams are decoded while playing and as such are useful for large audio-files like music or speech. More...
Go to the source code of this file.
Data Structures | |
| struct | kore_mixer_sound_stream |
Typedefs | |
| typedef struct kore_mixer_sound_stream | kore_mixer_sound_stream |
Functions | |
| KORE_FUNC kore_mixer_sound_stream * | kore_mixer_sound_stream_create (const char *filename, bool looping) |
| Create a sound-stream from a wav file. | |
| KORE_FUNC float * | kore_mixer_sound_stream_next_frame (kore_mixer_sound_stream *stream) |
| Gets the next audio-frame in the stream. | |
| KORE_FUNC int | kore_mixer_sound_stream_channels (kore_mixer_sound_stream *stream) |
| Gets the number of audio-channels the stream uses. | |
| KORE_FUNC int | kore_mixer_sound_stream_sample_rate (kore_mixer_sound_stream *stream) |
| Gets the sample-rate used by the stream. | |
| KORE_FUNC bool | kore_mixer_sound_stream_looping (kore_mixer_sound_stream *stream) |
| Returns whether the stream loops automatically. | |
| KORE_FUNC void | kore_mixer_sound_stream_set_looping (kore_mixer_sound_stream *stream, bool loop) |
| Changes whether the stream is looped automatically. | |
| KORE_FUNC bool | kore_mixer_sound_stream_ended (kore_mixer_sound_stream *stream) |
| Returns whether the stream finished playing. | |
| KORE_FUNC float | kore_mixer_sound_stream_length (kore_mixer_sound_stream *stream) |
| Returns the length of the stream. | |
| KORE_FUNC float | kore_mixer_sound_stream_position (kore_mixer_sound_stream *stream) |
| Returns the current playing-position of the stream. | |
| KORE_FUNC void | kore_mixer_sound_stream_reset (kore_mixer_sound_stream *stream) |
| Resets the stream to its start-position. | |
| KORE_FUNC float | kore_mixer_sound_stream_volume (kore_mixer_sound_stream *stream) |
| Gets the stream's volume-multiplicator. | |
| KORE_FUNC void | kore_mixer_sound_stream_set_volume (kore_mixer_sound_stream *stream, float value) |
| Sets the stream's volume-multiplicator. | |
Sound-Streams are decoded while playing and as such are useful for large audio-files like music or speech.
| KORE_FUNC int kore_mixer_sound_stream_channels | ( | kore_mixer_sound_stream * | stream | ) |
Gets the number of audio-channels the stream uses.
| stream | The stream to extract the number of channels from |
| KORE_FUNC kore_mixer_sound_stream * kore_mixer_sound_stream_create | ( | const char * | filename, |
| bool | looping ) |
Create a sound-stream from a wav file.
| filename | A path to a wav file |
| looping | Defines whether the stream will be looped automatically |
| KORE_FUNC bool kore_mixer_sound_stream_ended | ( | kore_mixer_sound_stream * | stream | ) |
Returns whether the stream finished playing.
| stream | The stream to query |
| KORE_FUNC float kore_mixer_sound_stream_length | ( | kore_mixer_sound_stream * | stream | ) |
Returns the length of the stream.
| stream | The stream to query |
| KORE_FUNC bool kore_mixer_sound_stream_looping | ( | kore_mixer_sound_stream * | stream | ) |
Returns whether the stream loops automatically.
| stream | The stream to extract the looping-information from |
| KORE_FUNC float * kore_mixer_sound_stream_next_frame | ( | kore_mixer_sound_stream * | stream | ) |
Gets the next audio-frame in the stream.
| stream | The stream to extract the frame from |
| KORE_FUNC float kore_mixer_sound_stream_position | ( | kore_mixer_sound_stream * | stream | ) |
Returns the current playing-position of the stream.
| stream | The stream to query |
| KORE_FUNC void kore_mixer_sound_stream_reset | ( | kore_mixer_sound_stream * | stream | ) |
Resets the stream to its start-position.
| stream | The stream to change |
| KORE_FUNC int kore_mixer_sound_stream_sample_rate | ( | kore_mixer_sound_stream * | stream | ) |
Gets the sample-rate used by the stream.
| stream | The stream to extract the sample-rate from |
| KORE_FUNC void kore_mixer_sound_stream_set_looping | ( | kore_mixer_sound_stream * | stream, |
| bool | loop ) |
Changes whether the stream is looped automatically.
| stream | The stream to change |
| loop | The new loop value to set |
| KORE_FUNC void kore_mixer_sound_stream_set_volume | ( | kore_mixer_sound_stream * | stream, |
| float | value ) |
Sets the stream's volume-multiplicator.
| stream | The stream to change |
| value | The volume-multiplicator |
| KORE_FUNC float kore_mixer_sound_stream_volume | ( | kore_mixer_sound_stream * | stream | ) |
Gets the stream's volume-multiplicator.
| stream | The stream to query |