aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mvp: removed big_endian parameter from mvp_set_pcm_params()Max Kellermann2009-02-251-16/+3
| | | | | Don't pass the big_endian flag to mvp_set_pcm_params(), do a simple "G_BYTE_ORDER==G_LITTLE_ENDIAN" instead.
* mvp: use G_N_ELEMENTS(mvp_sample_rates)Max Kellermann2009-02-251-5/+2
| | | | | Instead of manually calculating the number of elements in the mvp_sample_rates array, use GLib's convenience macro G_N_ELEMENTS().
* mvp: no CamelCaseMax Kellermann2009-02-252-36/+40
| | | | Renamed types, functions and variables.
* output: audio_output_init() returns boolMax Kellermann2009-02-252-5/+5
| | | | Return true/false instead of 1/0.
* output: set a GLib log domainMax Kellermann2009-02-253-0/+10
|
* fifo: return bool valuesMax Kellermann2009-02-251-12/+12
| | | | Return true/false for success/failure instead of returning 0/-1.
* fifo: no CamelCaseMax Kellermann2009-02-252-45/+52
| | | | Renamed types, functions and variables.
* fifo: removed timer!=NULL checksMax Kellermann2009-02-251-12/+1
| | | | | The MPD core guarantees that the audio_output object is always consistent, and our timer!=NULL checks are superfluous.
* ao: no CamelCaseMax Kellermann2009-02-252-50/+43
| | | | Renamed functions and variables.
* ao: removed AoData.device!=NULL checksMax Kellermann2009-02-251-12/+1
| | | | | | | The MPD core guarantees that the audio_output object is always in a consistent state: either open or closed. When open, it will not call the open() method again, and when closed, it will not call play(). Removed several checks and the NULL initialization.
* ao: removed implementation of method cancel()Max Kellermann2009-02-251-6/+0
| | | | | The method is empty, and we can simply set the method pointer to NULL instead.
* output_plugin: don't pass audio_output object to method init()Max Kellermann2009-02-2512-34/+19
| | | | | | audio_output_get_name() has been removed, which was the only function left in output_api.h. The output plugin doesn't need the audio_output object at all, remove the parameter from the init() method.
* output_api: removed audio_output_get_name()Max Kellermann2009-02-256-53/+14
| | | | Use config_get_block_string("name") instead of audio_output_get_name().
* test: added encoder test programMax Kellermann2009-02-253-0/+124
| | | | Added a command line program which runs an encoder plugin.
* test: added decoder test programMax Kellermann2009-02-253-1/+181
| | | | Added a command line program which runs a decoder plugin.
* configure.ac: declare AM_CFLAGSMax Kellermann2009-02-253-4/+6
| | | | | Moved generic compiler options to AM_CFLAGS. MPD_CFLAGS/MPD_LIBS will hopefully fade away one day, in favor of more fine-grained variables.
* Makefile.am: use AM_CPPFLAGS, AM_LDFLAGSMax Kellermann2009-02-251-4/+2
| | | | | | | Renamed the old AM_CFLAGS to AM_CPPFLAGS, because it contained only preprocessor options. Append it to src_mpd_CPPFLAGS. Removed GLIB_LIBS from src_mpd_CPPFLAGS, because it is already part of AM_LDFLAGS.
* Makefile.am: added per-subsystem variablesMax Kellermann2009-02-251-80/+131
| | | | | Added "make" variables for the sources and dependencies of each subsystem (archive, input, output, decoder, encoder, mixer).
* ls: moved generic URI utilities to uri.cMax Kellermann2009-02-2514-29/+82
| | | | | "ls" is a bad name for a library which parses URIs. We'll move the rest of the "ls" library later.
* test/software_volume: pass error->message to g_printerr()Max Kellermann2009-02-251-1/+2
| | | | Fix a gcc warning.
* vorbis_encoder: vorbis_encoder_clear() returns voidMax Kellermann2009-02-241-5/+1
| | | | Don't return an uninitialized bool variable.
* jack: initialize local variable "space"Max Kellermann2009-02-241-1/+1
| | | | | Fix a gcc warning, initialize the "space" variable at the beginning of mpd_jack_play().
* listen: fix unused parameter warnings when TCP is disabledMax Kellermann2009-02-241-0/+3
| | | | Work around gcc warnings by casting the parameters to void.
* listen: removed is_ipv6_enabled()Max Kellermann2009-02-241-19/+14
| | | | | Don't explicitly check is_ipv6_enabled(), just try calling listen_add_port_ipv6(), but check its error code.
* listen: splitted listen_add_port() into IPv4 and IPv6Max Kellermann2009-02-241-20/+52
| | | | Some more code simplification.
* listen: don't call listen_add_config_param(NULL)Max Kellermann2009-02-241-10/+25
| | | | | For default bind_to_address settings, don't call listen_add_config_param(NULL), use listen_add_port() directly.
* listen: moved code to listen_add_host()Max Kellermann2009-02-241-58/+78
| | | | | Split code from the rather large function listen_add_config_param(), part 3.
* listen: moved code to listen_add_path()Max Kellermann2009-02-241-25/+38
| | | | | Split code from the rather large function listen_add_config_param(), part 2.
* listen: moved code to listen_add_port()Max Kellermann2009-02-241-33/+50
| | | | Split code from the rather large function listen_add_config_param().
* listen: listen_add_address() returns bool/GErrorMax Kellermann2009-02-241-38/+93
| | | | | Don't return -1 on failure, and abort on fatal error - do proper error reporting with GError, and return false on failure.
* listen: removed unused macro "MAXHOSTNAME"Max Kellermann2009-02-241-2/+0
|
* listen: no CamelCaseMax Kellermann2009-02-245-30/+31
| | | | Renamed functions.
* configure.ac: fix comma errorsMax Kellermann2009-02-241-2/+2
| | | | Removed superfluous commas.
* ffmpeg: add all known ffmpeg extensions and mime-types.Avuton Olrich2009-02-231-18/+77
| | | | | | | | | | | | | After much research[1][2][3] this should be the majority of currently supported file extensions and mime-types for the currently supported ffmpeg formats. This list maybe incomplete, but it's more complete than anything else out there that I've been able to find. This list needs to be updated every now and again as the ffmpeg sources support more formats. 1. Sources 2. wiki.multimedia.cx 3. filext.com
* Makefile.am: no recursive makefilesMax Kellermann2009-02-235-486/+484
| | | | | | Recursive Makefiles are inefficient and error prone (no proper way to declare dependencies). Since there's no disadvantage in having one single Makefile, let's do it.
* output: pass the music chunk pointer as void*, not char*Max Kellermann2009-02-2314-21/+21
| | | | | | The meaning of the chunk depends on the audio format; don't suggest a specific format by declaring the pointer as "char*", pass "void*" instead.
* output_api: play() returns a lengthMax Kellermann2009-02-2312-119/+103
| | | | | | | | The old API required an output plugin to not return until all data passed to the play() method is consumed. Some output plugins have to loop to fulfill that requirement, and may block during that. Simplify these, by letting them consume only part of the buffer: make play() return the length of the consumed data.
* shout: removed shout_plugin.hMax Kellermann2009-02-223-54/+28
| | | | | There are no plugins left which require shout_plugin.h. Moved the struct declaration to shout_plugin.c.
* shout: removed shout_encoder_pluginsMax Kellermann2009-02-221-11/+0
| | | | This array is empty, and is not used anymore.
* shout: use the new encoder APIMax Kellermann2009-02-226-566/+103
| | | | | Removed shout's encoder plugin API in favor of the new generic encoder plugin API.
* encoder: added lame mp3 encoderMax Kellermann2009-02-224-0/+296
| | | | | This new LAME encoder plugin is based on the existing shout_mp3.c plugin.
* encoder: added vorbis encoderMax Kellermann2009-02-224-0/+401
| | | | | This new vorbis encoder plugin is based on the existing shout_ogg.c plugin.
* added the encoder APIMax Kellermann2009-02-226-0/+308
| | | | The new generic encoder API will replace shout's custom encoder API.
* shout: merged open_shout_conn() into my_shout_open_device()Max Kellermann2009-02-221-10/+2
| | | | | The method implementation my_shout_open_device() consists of only one line, the call to open_shout_conn(). Merge both functions into one.
* shout: bool return values instead of intMax Kellermann2009-02-221-27/+28
| | | | Return true/false instead of 0/-1.
* pcm: added API documentationMax Kellermann2009-02-216-1/+130
|
* crossfade: added API documentationMax Kellermann2009-02-201-0/+21
|
* path: don't export path_set_fs_charset()Max Kellermann2009-02-202-3/+2
| | | | The function path_set_fs_charset() is only used in path.c.
* path: validate configured character setMax Kellermann2009-02-201-0/+11
|
* decoder_api: fixed shadow warning, rename "wait"Max Kellermann2009-02-191-2/+2
| | | | | The parameter name "wait" overlaps with the POSIX wait() function. Rename it.