aboutsummaryrefslogtreecommitdiff
path: root/src/decoder/_flac_common.c
Commit message (Collapse)AuthorAge
* decoder/flac: moved code to flac_data_get_audio_format()Max Kellermann2009-11-11
| | | | | | 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: use frame header instead of audio_formatMax Kellermann2009-11-11
| | | | | | When calculating the properties of the frame, use sample_rate and other information from the frame header instead of the stored audio_format object.
* decoder/flac: calculate time stamp from current frameMax Kellermann2009-11-11
| | | | | | | | | 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-11
| | | | | | 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-11
| | | | | | | 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: keep track of current frame numberMax Kellermann2009-11-11
| | | | We need this for more exact end-of-subsong detection for CUE files.
* decoder/flac: moved code to flac_pcm.cMax Kellermann2009-11-11
|
* decoder/flac: moved code to flac_metadata.cMax Kellermann2009-11-11
|
* decoder/flac: return replay_gain_info object from helper functionMax Kellermann2009-11-11
| | | | | Make the function more generic by not passing "struct flac_data" to it.
* decoder/flac: merged some code into flac_tag_apply_metadata()Max Kellermann2009-11-11
|
* decoder/flac: pass VorbisComment to comments_to_tag()Max Kellermann2009-11-10
|
* decoder/flac: use pcm_buffer instead of fixed bufferMax Kellermann2009-11-10
| | | | | | 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-10
| | | | Clean up tag and replay_gain_info there.
* decoder/flac: pass void pointer to flac_convert()Max Kellermann2009-11-10
| | | | | That function diverts into various bit formats; it doesn't need a typed pointer.
* decoder/flac: pass audio_format.bits to flac_convert()Max Kellermann2009-11-10
| | | | | Don't use audio_format_sample_size() for identifying the sample format.
* tag: removed the "_ITEM_" suffix from the enum namesMax Kellermann2009-10-13
|
* Merged release 0.15.2 from branch 'v0.15.x'Max Kellermann2009-08-15
|\ | | | | | | | | | | | | Conflicts: NEWS configure.ac
| * decoder/flac: don't allocate cuesheet twice (memleak)Max Kellermann2009-08-14
| | | | | | | | | | | | | | The function flac_cue_track() first calls FLAC__metadata_object_new(), then overwrites this pointer with FLAC__metadata_get_cuesheet(). This allocate two FLAC__StreamMetadata objects, but the first pointer is lost, and never freed.
| * decoder/flac: fixed indentation of flac_comment_value()Max Kellermann2009-07-22
| |
| * decoder/flac: parse all replaygain tagsMax Kellermann2009-07-22
| | | | | | | | | | The FLAC replaygain parser used the "||" operator. This made the code stop after the first value which was found.
| * decoder/flac: return early from flac_find_float_comment()Max Kellermann2009-07-22
| | | | | | | | | | When one metadata check fails, return quickly. This removes 2 levels of indent.
| * decoder/flac: removed misplaced authorship commentMax Kellermann2009-07-22
| | | | | | | | This belongs into "git annotate" or AUTHORS.
* | Add audio_format_init() functionDavid Woodhouse2009-07-19
|/ | | | | It makes no difference right now, but we're about to add an endianness flag and will want to make sure it's correctly initialised every time.
* flac/cue: added support for TITLE[n] commentsMario Lenz2009-03-17
| | | | | | | | | | | | On 2009/03/17 Max Kellermann<max@duempel.org> wrote: > There doesn't seem to be an "official" standard. I'd say: search for > TITLE[1] first (the most explicit form), then TITLE1, and finally fall > back to TITLE. This makes sure MPD supports every possible standard, > without breaking. I've also added some additional checks to make sure entry is long enough.
* flac: get CUE track titles from additional FLAC commentsMario Lenz2009-03-16
| | | | | | | | 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-13
| | | | | | | | 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-09
| | | | | | | | | 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: parse stream tagsMax Kellermann2009-03-01
| | | | | Parse the vorbis comments in libflac's metadata_callback and pass them as tag struct to the decoder API.
* tag: no CamelCaseMax Kellermann2009-02-27
| | | | Renamed numOfItems to num_items.
* flac: map "Album Artist" to "AlbumArtist"Rasmus Steinke2009-01-15
| | | | | This patch allows mpd to recognise the albumartist tag in the way foobar2000 and others write it to files.
* flac: splitted flac_copy_vorbis_comment()Max Kellermann2009-01-15
| | | | | Splitted flac_copy_vorbis_comment() into flac_copy_comment() and flac_copy_comment().
* flac: moved code to flac_comment_value()Max Kellermann2009-01-15
| | | | | Simplify flac_copy_vorbis_comment() by moving the comment identification code out.
* flac: always allocate tag objectMax Kellermann2009-01-15
| | | | | Free the tag object when it turns out to be empty. This simplifies several functions and APIs.
* flac: use bool instead of intMax Kellermann2009-01-15
|
* flac: no CamelCaseMax Kellermann2009-01-15
| | | | Renamed types, functions, variables.
* decoder plugins: don't include gcc.hMax Kellermann2009-01-01
| | | | Use GLib's G_GNUC_UNUSED instead of gcc.h's mpd_unused.
* flac, oggflac: use GLib instead of utils.h/log.hMax Kellermann2008-11-21
|
* replay_gain: converted struct replay_gain_info elements to an arrayMax Kellermann2008-11-11
| | | | | Having an array instead of individual variables allows the use of the replay_gain_mode enum as an array index.
* replay_gain: no CamelCaseMax Kellermann2008-11-11
| | | | Renamed functions and variables.
* decoder_api: pass "seekable" flag to decoder_initialized()Max Kellermann2008-11-02
| | | | | | Don't pass the "seekable" flag with every decoder_data() invocation. Since that flag won't change within the file, it is enough to pass it to decoder_initialized() once per file.
* input_stream: removed the InputStream typedefMax Kellermann2008-10-26
| | | | Everybody should use struct input_stream.
* renamed src/inputPlugins/ to src/decoder/Max Kellermann2008-10-26
These plugins are not input plugins, they are decoder plugins. No CamelCase in the directory name.