aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/_flac_common.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* decoder/_ogg_common: rename to ogg_common.cMax Kellermann2012-09-041-103/+0
|
* gcc.h: re-add gcc_const and gcc_pureMax Kellermann2012-08-021-2/+0
| | | | Remove GLib dependency from some headers.
* decoder/flac: use error messages from libFLACMax Kellermann2012-02-111-2/+1
|
* copyright year 2011Max Kellermann2011-01-291-1/+1
|
* decoder/flac: moved decoder initialization to _flac_common.cMax Kellermann2010-01-061-15/+6
| | | | | | Invoke decoder_initialized() in the libFLAC metadata callback. This merges code from the FLAC and the OggFLAC decoder plugin into the common library.
* decoder/flac: remember audio_format, not stream_infoMax Kellermann2010-01-061-7/+13
|
* decoder/flac: removed CUE sheet supportMax Kellermann2010-01-061-11/+0
| | | | This feature has been moved to the "flac" playlist plugin.
* decoder_api: added function decoder_replay_gain()Max Kellermann2010-01-041-1/+0
| | | | | | This function replaces the replay_gain_info parameter for decoder_data(). This allows the decoder to announce replay gain changes, instead of having to pass the same object over and over.
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* audio_format: changed "bits" to "enum sample_format"Max Kellermann2009-12-021-0/+2
| | | | | | This patch prepares support for floating point samples (and probably other formats). It changes the meaning of the "bits" attribute from a bit count to a symbolic value.
* decoder/flac: moved code to flac_data_get_audio_format()Max Kellermann2009-11-111-1/+16
| | | | | | Remove the audio_format attribute, add "frame_size" instead. The audio_format initialization and check is moved both to flac_data_get_audio_format().
* decoder/flac: calculate time stamp from current frameMax Kellermann2009-11-111-1/+6
| | | | | | | | | Don't update a float timestamp, this will make imprecisions add up after a while. We already have the number of the current frame, let's just calculate the float timestamp from that for every decoder_data() command. For this, we need to add the attribute "first_frame", for CUE sheet songs.
* decoder/flac: calculate bit rate in flac_common_write()Max Kellermann2009-11-111-2/+2
| | | | | | Removed the "bit_rate" attribute from the flac_data struct. Pass the number of bytes since the last call to flac_common_write(), and let it calculate the bit rate.
* decoder/flac: store the whole stream info object, not durationMax Kellermann2009-11-111-1/+13
| | | | | | | We don't want to work with floating point values if possible. Get the integer number of frames from the FLAC__StreamMetadata_StreamInfo object, and convert it into a float duration on demand. This patch adds a check if the STREAMINFO packet has been received yet.
* decoder/flac: moved code to flac_compat.hMax Kellermann2009-11-111-113/+3
|
* decoder/flac: keep track of current frame numberMax Kellermann2009-11-111-0/+5
| | | | We need this for more exact end-of-subsong detection for CUE files.
* decoder/flac: moved code to flac_metadata.cMax Kellermann2009-11-111-11/+0
|
* decoder/flac: merged some code into flac_tag_apply_metadata()Max Kellermann2009-11-111-2/+2
|
* decoder/flac: don't use float to calculate song durationMax Kellermann2009-11-101-0/+7
| | | | | Simple (up-rounding) integer division is good enough. We're casting the result back to an integer anyway.
* decoder/flac: pass VorbisComment to comments_to_tag()Max Kellermann2009-11-101-1/+1
|
* decoder/flac: use pcm_buffer instead of fixed bufferMax Kellermann2009-11-101-2/+4
| | | | | | This is a great simplification for flac_common_write(), because we can convert and submit all of the buffer in one turn. No more partial buffers with complicated formulas.
* decoder/flac: added function flac_data_deinit()Max Kellermann2009-11-101-0/+3
| | | | Clean up tag and replay_gain_info there.
* flac: get CUE track titles from additional FLAC commentsMario Lenz2009-03-161-1/+1
| | | | | | | | The cue sheet embedded in a flac file doen't contain any information about track titles and similar. There are three possibilities: Use an external cue sheet that includes these information, use a tag CUESHEET with a cue sheet including these information or use tags. I think the latter is the best option and is already used by other projects.
* all: Update copyright header.Avuton Olrich2009-03-131-9/+11
| | | | | | | | 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.
* Initial support for embedded cue sheets found in flac filesJochen Keil2009-03-091-0/+11
| | | | | | | | | So far only seekpoints are supported, so no proper tagging yet except for track number and track length. Tagging should be done by parsing the cue sheet which is often embedded as vorbis comment in flac files. Furthermore the pathname should be configurable like "%A - %t - %T", where %A means Artist, %t track number and %T Title or so.
* flac: include config.hMax Kellermann2009-01-191-0/+1
| | | | | The plugin queries build-time configuration variables, and should include config.h.
* flac: always allocate tag objectMax Kellermann2009-01-151-3/+3
| | | | | Free the tag object when it turns out to be empty. This simplifies several functions and APIs.
* flac: no CamelCaseMax Kellermann2009-01-151-12/+16
| | | | Renamed types, functions, variables.
* flac, oggflac: use GLib instead of utils.h/log.hMax Kellermann2008-11-211-0/+5
|
* replay_gain: no CamelCaseMax Kellermann2008-11-111-1/+1
| | | | Renamed functions and variables.
* added prefix to header macrosMax Kellermann2008-10-311-2/+2
| | | | | | | "LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
* input_stream: removed the InputStream typedefMax Kellermann2008-10-261-2/+2
| | | | Everybody should use struct input_stream.
* renamed src/inputPlugins/ to src/decoder/Max Kellermann2008-10-261-0/+168
These plugins are not input plugins, they are decoder plugins. No CamelCase in the directory name.