- 01 Jan, 2010 1 commit
-
-
Avuton Olrich authored
-
- 12 Nov, 2009 1 commit
-
-
Max Kellermann authored
After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
-
- 11 May, 2009 1 commit
-
-
Max Kellermann authored
Always assert that the audio format of the new chunk is valid.
-
- 13 Mar, 2009 1 commit
-
-
Avuton Olrich authored
This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
-
- 09 Mar, 2009 1 commit
-
-
Max Kellermann authored
-
- 08 Mar, 2009 1 commit
-
-
Max Kellermann authored
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.
-
- 07 Mar, 2009 3 commits
-
-
Max Kellermann authored
Added two assertions.
-
Max Kellermann authored
The value of music_chunk.next is undefined for a chunk returned by music_pipe_shift(). For more pedantic debugging, poison the reference before returning the chunk.
-
Max Kellermann authored
music_pipe_peek() is similar to music_pipe_shift(), but doesn't remove the chunk. This allows it to be used with a "const" music_pipe.
-
- 05 Mar, 2009 3 commits
-
-
Max Kellermann authored
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.
-
Max Kellermann authored
Added music_pipe_allocate(), music_pipe_push() and music_pipe_cancel(). Those functions allow the caller (decoder thread in this case) to do its own chunk management. The functions music_pipe_flush() and music_pipe_tag() can now be removed.
-
Max Kellermann authored
Moved some code from music_pipe_write() and music_pipe_expand(). Only music_chunk.c should access the music_chunk internals.
-
- 03 Mar, 2009 1 commit
-
-
Max Kellermann authored
-
- 17 Jan, 2009 2 commits
-
-
Max Kellermann authored
The function is unused, since decoder_api() uses music_pipe_write() / music_pipe_expand() now.
-
Max Kellermann authored
This new API gives the caller a writable buffer to the music pipe chunk. This may allow the caller to eliminate several buffer copies, because it may manipulate the returned buffer, until it calls music_pipe_expand().
-
- 18 Nov, 2008 1 commit
-
-
Max Kellermann authored
The chunk index passed to successor() must be valid, i.e. it must be smaller than num_chunks.
-
- 13 Nov, 2008 3 commits
-
-
Max Kellermann authored
When a CANCEL command is received, the player should drop all chunks of the next song. Added new funciton music_pipe_chop() which is used for that.
-
Max Kellermann authored
Provide a debug function which asserts on the sample format of all chunks. Call this function in each iteration of the player main loop.
-
Max Kellermann authored
Added an additional assertion which checks partial frames in the existing tail chunk.
-
- 02 Nov, 2008 13 commits
-
-
Max Kellermann authored
Each music chunk can now carry a tag object. Decoder plugins which support it (e.g. oggvorbis) may use this to inject decoded tags into their output.
-
Max Kellermann authored
These two functions will care about memory allocation and deallocation in the future.
-
Max Kellermann authored
The name "num_chunks" expresses the meaning of the variable better.
-
Max Kellermann authored
Rename all variables and struct members.
-
Max Kellermann authored
Don't bother to pass these values as parameters to tail_chunk().
-
Max Kellermann authored
-
Max Kellermann authored
Last music_pipe rename patch: renamed the global variable (singleton).
-
Max Kellermann authored
Eliminate the deprecated utils.h memory allocation functions.
-
Max Kellermann authored
.. and rename dc.audioFormat to dc.in_audio_format. The music pipe does not need to know the audio format, and its former "audioFormat" property indicated the format of the most recently added chunk, which might be confusing when you are reading the oldest chunks.
-
Max Kellermann authored
Don't make tail_chunk() calculate the frame size again.
-
Max Kellermann authored
Rename all functions to the new prefix.
-
Max Kellermann authored
.. and rename ob_chunk to struct music_chunk.
-
Max Kellermann authored
No CamelCase in the file name. The output_buffer struct is going to be renamed to music_pipe. There are so many buffer levels in MPD, and calling this one "output buffer" is wrong, because it's not the last buffer before the music reaches the output devices.
-
- 23 Oct, 2008 1 commit
-
-
Max Kellermann authored
Splitting a frame between two buffer chunks causes distortion in the output. MPD used to assume that the chunk size 1020 would never cause splitted frames, but that isn't the case for 24 bit stereo (127.5 frames), and even less for files with even more channels.
-
- 11 Oct, 2008 1 commit
-
-
Max Kellermann authored
The function ob_is_empty() is called very often. It's worth it to convert it to an inline function.
-
- 08 Oct, 2008 3 commits
-
-
Max Kellermann authored
"bool" should be used in C99 programs for boolean values.
-
Max Kellermann authored
When there are standardized headers, use these instead of the bloated os_compat.h.
-
Max Kellermann authored
Typedefs shouldn't be used, use the bare struct names instead.
-
- 29 Sep, 2008 1 commit
-
-
Max Kellermann authored
Do full C99 integer type conversion in all modules which were not touched by Eric's merged patch.
-
- 26 Aug, 2008 2 commits
-
-
Max Kellermann authored
This releases several include file dependencies. As a side effect, "CHUNK_SIZE" isn't defined by decoder_api.h anymore, so we have to define it directly in the plugins which need it. It just isn't worth it to add it to the decoder plugin API.
-
Max Kellermann authored
Since we moved all PCM conversions to decoder_data(), the attribute convState isn't being used anymore by the OutputBuffer code. Move it to struct decoder.
-