|
MPD
0.17~git
|
A chunk of music data. More...
#include <chunk.h>
Data Fields | |
| struct music_chunk * | next |
| the next chunk in a linked list | |
| struct music_chunk * | other |
| An optional chunk which should be mixed into this chunk. | |
| float | mix_ratio |
| The current mix ratio for cross-fading: 1.0 means play 100% of this chunk, 0.0 means play 100% of the "other" chunk. | |
| uint16_t | length |
| number of bytes stored in this chunk | |
| uint16_t | bit_rate |
| current bit rate of the source file | |
| float | times |
| the time stamp within the song | |
| struct tag * | tag |
| An optional tag associated with this chunk (and the following chunks); appears at song boundaries. | |
| struct replay_gain_info | replay_gain_info |
| Replay gain information associated with this chunk. | |
| unsigned | replay_gain_serial |
| A serial number for checking if replay gain info has changed since the last chunk. | |
| char | data [CHUNK_SIZE] |
| the data (probably PCM) | |
| struct audio_format | audio_format |
A chunk of music data.
Its format is defined by the music_pipe_append() caller.
| uint16_t music_chunk::bit_rate |
| char music_chunk::data[CHUNK_SIZE] |
| uint16_t music_chunk::length |
| float music_chunk::mix_ratio |
| struct music_chunk* music_chunk::next |
| struct music_chunk* music_chunk::other |
| unsigned music_chunk::replay_gain_serial |
| struct tag* music_chunk::tag |
An optional tag associated with this chunk (and the following chunks); appears at song boundaries.
The tag object is owned by this chunk, and must be freed when this chunk is deinitialized in music_chunk_free()
| float music_chunk::times |
1.7.6.1