aboutsummaryrefslogtreecommitdiffstats
path: root/src/chunk.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* music_chunk: added assertions on the audio formatMax Kellermann2009-03-081-0/+18
| | | | | | | In !NDEBUG, remember which audio_format is stored in every chunk and every pipe. Check the audio_format of every new data block appended to the music_chunk, and the format of every new chunk appended to the music_pipe.
* chunk: added music_chunk_is_empty()Max Kellermann2009-03-071-0/+6
|
* pipe: added music_buffer, rewrite music_pipeMax Kellermann2009-03-061-0/+3
| | | | | | | | Turn the music_pipe into a simple music_chunk queue. The music_chunk allocation code is moved to music_buffer, and is now managed with a linked list instead of a ring buffer. Two separate music_pipe objects are used by the decoder for the "current" and the "next" song, which greatly simplifies the cross-fading code.
* music_chunk: added music_chunk_write(), music_chunk_expand()Max Kellermann2009-03-051-0/+36
| | | | | Moved some code from music_pipe_write() and music_pipe_expand(). Only music_chunk.c should access the music_chunk internals.
* music_pipe: moved struct music_chunk to chunk.hMax Kellermann2009-03-031-0/+61