aboutsummaryrefslogtreecommitdiffstats
path: root/test (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-02-17replay_gain: reimplement as a filter pluginMax Kellermann2-0/+12
Apply the replay gain in the output thread. This means a new setting will be active instantly, without going through the whole music pipe. And we might have different replay gain settings for each audio output device.
2010-01-18decoder_api: removed function decoder_get_uri()Max Kellermann2-10/+0
Use input_stream.uri.
2010-01-16test/run_convert: implement a GLib log callbackMax Kellermann1-0/+12
Log to stderr instead of the default stdout. We need a pristine stdout for the conversion result.
2010-01-16test/run_convert: use fifo_buffer to adapt to odd sample sizesMax Kellermann1-3/+26
Ensure that the pcm_convert() length argument is aligned to the sample size.
2010-01-04decoder_api: added function decoder_replay_gain()Max Kellermann2-4/+14
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.
2010-01-01input_stream: return allocated input_stream objectsMax Kellermann4-27/+23
Major API redesign: don't let the caller allocate the input_stream object. Let each input plugin allocate its own (derived/extended) input_stream pointer. The "data" attribute can now be removed, and all input plugins simply cast the input_stream pointer to their own structure (with an "struct input_stream base" as the first attribute).
2009-12-31Update copyright notices.Avuton Olrich12-12/+12
2009-12-31decoder_plugin: added method stream_tag()Max Kellermann1-0/+14
This is like tag_dup(), but works with an input_stream object instead of a file path.
2009-12-31Makefile.am: added unit tests for the archive pluginsMax Kellermann3-0/+30
2009-12-27song: added support for selecting a time rangeMax Kellermann1-0/+8
Added attributes start_ms, end_ms. This allows us to address a portion of a song file (important for CUE support). There is no support yet for storing these attributes in the state file.
2009-12-26decoder_api: added function decoder_timestamp()Max Kellermann2-2/+14
Remove the data_time parameter from decoder_data(). This patch eliminates the timestamp counting in most decoder plugins, because the MPD core will do it automatically by default.
2009-12-25output_init: use the normalize filter pluginMax Kellermann1-14/+6
Use the plugin instead of the glue code in normalize.c. This is used wrapped inside a "autoconv" filter, to enable normalization for all input file formats.
2009-12-15input_stream: return errors with GErrorMax Kellermann4-14/+43
2009-12-15test/run_input: deinitialize everything after open() errorMax Kellermann1-40/+50
This enables valgrind debugging after an error occurred.
2009-12-15test/run_input: initialize archive pluginsMax Kellermann1-0/+15
Enable archive plugin debugging.
2009-12-14input_plugin: method init() returns errors with GErrorMax Kellermann4-4/+27
Not used by any plugin currently, but this eliminates the g_error() call in input_plugin_config(), so it's worth it.
2009-12-14input_stream: moved input_stream_global_init() to input_init.cMax Kellermann4-0/+4
2009-12-14test/run_{decoder,filter}: implemented GLib log callbackMax Kellermann2-0/+25
Log to stderr, not to stdout (which broke PCM output).
2009-12-02audio_format: changed "bits" to "enum sample_format"Max Kellermann4-4/+4
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.
2009-12-02test: added normalize test programMax Kellermann1-0/+79
2009-11-19test: added program to test pcm_convert.cMax Kellermann1-0/+86
2009-11-19test/software_volume: check for errorsMax Kellermann1-1/+6
2009-11-19test/software_volume: fixed audio_format parserMax Kellermann1-3/+3
Assign default value only if none was given on the command line.
2009-11-14audio_format: added function audio_format_to_string()Max Kellermann3-7/+10
Unified function for converting an audio_format object to a string, for log messages and for the "status" command.
2009-11-12include config.h in all sourcesMax Kellermann10-2/+10
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.
2009-11-10test: fixed the read_mixer program on !HAVE_PULSEMax Kellermann1-1/+6
2009-11-01replay_gain: trigger OPTIONS idle event on mode changeMax Kellermann2-0/+18
2009-10-29output: consistently lock audio output objectsMax Kellermann1-4/+0
Always keep the audio_output object locked within the output thread, unless a plugin method is called. This fixes several race conditions.
2009-10-23output/pulse: call mixer on state changesMax Kellermann1-2/+16
Don't let the mixer plugin "override" the libpulse callbacks. Instead, add a "mixer" attribute to the pulse_output struct, and call the mixer on all interesting events.
2009-10-21audio_format: wildcards allowed in audio_format configurationMax Kellermann4-4/+8
An asterisk means that this attribute should not be enforced, and stays whatever it used to be. This way, some configuration values work like masks.
2009-10-21pulse: code rewrite using the asynchronous libpulse APIMax Kellermann2-0/+19
This is a complete rewrite of the PulseAudio output plugin. It uses the asynchronous API, which gives us more control over everything. Additionally, it connects to the PulseAudio server on startup, and keeps this connection up while MPD runs. During pause, instead of closing the stream, it enables "cork".
2009-10-21mixer_plugin: pass audio_output pointer to mixer_plugin.init()Max Kellermann1-1/+1
This allows the mixer object to access its associated audio output object.
2009-10-20mixer_plugin: use GError for error handlingMax Kellermann1-6/+14
2009-10-20mixer/{oss,alsa}: renamed the mixer source filesMax Kellermann1-1/+1
2009-10-13song: renamed attribute "url" to "uri"Max Kellermann1-1/+1
2009-10-13test/dump_playlist: try playlist_list_open_uri() firstMax Kellermann1-21/+30
2009-10-13test/dump_playlist: parse a configuration fileMax Kellermann1-3/+11
2009-10-12playlist_plugin: new plugin API for playlist parsersMax Kellermann1-0/+117
Based on this API, we will add parsers for EXTM3U, PLS, ASX, last.fm radio and others. There is no integration into the MPD core yet. Right now, we have a command line test program. This is work in progress.
2009-09-24conf: handle fatal errors with GErrorMax Kellermann4-4/+21
Don't call g_error(), which will abort the process and dump core. This patch does not affect all the config_get_X() functions. These need some more refactoring.
2009-08-04test: initialize locale in read_tags.cMax Kellermann1-0/+10
2009-07-23pcm_convert: use GError for error handlingMax Kellermann1-1/+4
Don't abort the whole MPD process when the conversion fails. This has been a denial-of-service attack vector for years.
2009-07-19Add audio_format_init() functionDavid Woodhouse4-20/+11
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.
2009-07-06mixer/software: new mixer which controls filter/volumeMax Kellermann1-0/+18
This mixer plugin may be used instead of the traditional global software mixer. It integrates with the "volume" filter plugin, and can control the software volume of an audio output which has no hardware mixer.
2009-07-06output: attach a filter chain to each audio_outputMax Kellermann1-0/+23
This patch adds initial filter support for audio outputs. Each audio output gets a "filter" attribute, which is used by ao_play_chunk(). The PCM conversion is now performed by convert_filter_plugin. audio_output.convert_state has been removed.
2009-07-05filter/volume: don't use volume_level_get()Max Kellermann1-6/+0
Added public methods to get and set the current volume.
2009-07-05test: added program "run_filter"Max Kellermann1-0/+174
This program runs filter plugins in an isolated environment.
2009-06-03conf: eliminated CamelCaseMax Kellermann1-2/+2
Renamed all remaining CamelCase functions.
2009-05-05test/run_encoder: flush the encoder before exitingMax Kellermann1-5/+21
2009-04-21test: added program "read_mixer"Max Kellermann1-0/+68
This little program is used to test mixer plugins in an isolated environment. This is ALSA-only currently, because we don't have a real "plugin list" yet, and I'm too lazy to implement a switch.
2009-04-13test: added run_input test programMax Kellermann1-0/+114