aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_control.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* decoder_control: add function _is_current_song()Max Kellermann2012-08-151-14/+20
| | | | Replaces _current_song().
* decoder_control: add assertion to dc_get_error()Max Kellermann2012-08-151-0/+1
|
* decoder_control: add GError attributeMax Kellermann2012-08-081-0/+51
|
* Merge branch 'v0.16.x'Max Kellermann2011-10-061-0/+20
|\ | | | | | | | | | | | | | | Conflicts: configure.ac src/player_control.c src/player_thread.c src/playlist_song.c
| * decoder_control: add attributes start_ms, end_msMax Kellermann2011-10-051-0/+20
| | | | | | | | | | Don't read song.start_ms and song.end_ms, let the player thread manage this logic instead.
* | copyright year 2011Max Kellermann2011-01-291-1/+1
| |
* | decoder_control: store GCond object, not a player_controlMax Kellermann2011-01-101-9/+7
| | | | | | | | | | | | Remove the decoder dependency on player_control. All player_control was needed for is to signal the player thread, and we can do that with a simple GCond as well.
* | decoder_control: remove unused function dc_command_wait()Max Kellermann2011-01-101-3/+0
| | | | | | | | Only dc_command_wait_locked() is really being used.
* | decoder_control: replace dc_init() with dc_new()Max Kellermann2011-01-101-3/+4
| | | | | | | | | | dc_new() allocates the object and returns it. dc_free() frees it (replaces dc_deinit()).
* | player_control: removed the global variable "pc"Max Kellermann2011-01-101-1/+9
|/ | | | | | | Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
* mixramp: Adjust MixRamp threshold to account for ReplayGain.Tim Phipps2010-05-081-0/+2
|
* Add support for MixRamp tagsTim Phipps2010-03-211-0/+13
| | | | | Adds mixrampdb and mixrampdelay commands. Reads MIXRAP_START and MIXRAMP_END tags from FLAC files and overlaps instead of crossfading.
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* decoder_control: pass pipe and buffer to dc_start()Max Kellermann2009-11-031-2/+14
| | | | Don't access decoder_control attributes directly.
* decoder_control: don't check command in decoder_is_starting()Max Kellermann2009-11-031-5/+3
| | | | | Asynchronous decoder startup is gone, and we don't need to check command==DECODE_COMMAND_START anymore.
* decoder_control: merge next_song and current_songMax Kellermann2009-11-031-3/+8
| | | | These two variables are redundant, we need only one of them.
* player_thread: don't start the decoder asynchronouslyMax Kellermann2009-11-031-3/+0
| | | | | The START command returns without blocking; we don't need the asynchronous decoder start anymore.
* decoder_control: make the song objects constMax Kellermann2009-11-031-2/+2
| | | | They are just informational.
* decoder_control: removed the global variable "dc"Max Kellermann2009-10-311-44/+50
| | | | | Allocate a decoder_control object where needed, and pass it around. This will allow more than one decoder thread one day.
* Merge branch 'v0.15.x'Max Kellermann2009-10-311-3/+0
|\ | | | | | | | | | | | | | | Conflicts: NEWS configure.ac src/decoder/ffmpeg_plugin.c src/update.c
| * decoder_control: removed unused DECODE_TYPE macrosMax Kellermann2009-10-311-3/+0
| |
* | player_control: protect command, state, error with a mutexMax Kellermann2009-10-311-6/+4
| | | | | | | | | | | | Use GMutex/GCond instead of the notify library. Manually lock the player_control object before accessing the protected attributes. Use the GCond object to notify the player thread and the main thread.
* | decoder_control: protect command, state with a mutexMax Kellermann2009-08-131-5/+92
|/ | | | | | Replace decoder_control.notify with decoder_control.mutex and decoder_control.cond. Lock the mutex on all accesses to decoder_control.command and decoder_control.state.
* all: Update copyright header.Avuton Olrich2009-03-131-7/+7
| | | | | | | | 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.
* pipe: added music_buffer, rewrite music_pipeMax Kellermann2009-03-061-0/+6
| | | | | | | | 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.
* decoder_api: moved enum decoder_command to decoder_command.hMax Kellermann2009-02-151-2/+1
| | | | Minimize header dependencies, again.
* decoder_control: added decoder_control.threadMax Kellermann2009-01-251-1/+5
| | | | | decoder_control.thread contains the handle of the decoder thread, or NULL if the decoder thread isn't running.
* decoder: terminate decoder thread before MPD cleanupMax Kellermann2008-12-281-0/+4
| | | | | | When MPD exits, it should manually free all resources in use, to allow easy memory leak debugging. Make the decoder thread terminate during that.
* decoder: converted dc.error to a dc.state valueMax Kellermann2008-11-081-12/+30
| | | | | | The player did not care about the exact error value, it only checked whether an error has occured. This could fit well into decoder_control.state - introduce a new state "DECODE_STATE_ERROR".
* decoder: converted DECODE_ERROR_* to enumMax Kellermann2008-11-031-4/+6
|
* decoder: removed "volatile" modifierMax Kellermann2008-11-031-2/+2
| | | | | | The variable "next_song" is already protected by a memory barrier. "total_time" is not important for synchronization, and we don't need "volatile" here.
* decoder: no CamelCaseMax Kellermann2008-11-031-3/+3
| | | | Renamed variables and functions.
* decoder: replaced music_pipe.audioFormat with dc.out_audio_formatMax Kellermann2008-11-021-1/+7
| | | | | | | .. 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.
* 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.
* decoder: use bool for return values and flagsMax Kellermann2008-10-301-5/+5
| | | | | Don't return 0/-1 on success/error, but true/false. Instead of int, use bool for storing flags.
* notify: removed the "Notify" typedefMax Kellermann2008-10-081-5/+8
| | | | Typedefs shouldn't be used, use the bare struct names instead.
* song: converted typedef Song to struct songMax Kellermann2008-10-081-6/+8
| | | | Again, a data type which can be forward-declared.
* switch to C99 types, part IIMax Kellermann2008-09-291-3/+3
| | | | | Do full C99 integer type conversion in all modules which were not touched by Eric's merged patch.
* notify: added notify_deinit()Max Kellermann2008-09-241-0/+2
| | | | Destroy the mutex when it is not used anymore.
* audio_format: converted typedef AudioFormat to struct audio_formatMax Kellermann2008-09-071-1/+1
| | | | | Get rid of CamelCase, and don't use a typedef, so we can forward-declare it, and unclutter the include dependencies.
* moved code to pc_init(), dc_init()Max Kellermann2008-08-261-0/+2
|
* renamed decode.h to decoder_control.hMax Kellermann2008-08-261-0/+90