Go to the source code of this file.
Functions | |
| unsigned | cross_fade_calc (float duration, float total_time, const struct audio_format *af, const struct audio_format *old_format, unsigned max_chunks) |
| Calculate how many music pipe chunks should be used for crossfading. | |
| void | cross_fade_apply (struct music_chunk *a, const struct music_chunk *b, const struct audio_format *format, unsigned int current_chunk, unsigned int num_chunks) |
| Applies cross fading to two chunks, i.e. | |
| void cross_fade_apply | ( | struct music_chunk * | a, | |
| const struct music_chunk * | b, | |||
| const struct audio_format * | format, | |||
| unsigned int | current_chunk, | |||
| unsigned int | num_chunks | |||
| ) |
| unsigned cross_fade_calc | ( | float | duration, | |
| float | total_time, | |||
| const struct audio_format * | af, | |||
| const struct audio_format * | old_format, | |||
| unsigned | max_chunks | |||
| ) |
Calculate how many music pipe chunks should be used for crossfading.
| duration | the requested crossfade duration | |
| total_time | total_time the duration of the new song | |
| af | the audio format of the new song | |
| old_format | the audio format of the current song | |
| max_chunks | the maximum number of chunks |
1.5.9