aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-12-19add draft ALSA input pluginSteven O'Brien4-0/+244
I've created an elementary input plugin that plays sound from the soundcard, so you can use MPD to listen to anything connected to the line-in jack, or to Video4Linux FM radio cards that send audio through the soundcard. There has been a small number of posts here in the past requesting line-in input, so here is a first, simplistic stab at it. The patch adds a new sheme, alsa://, which causes mpd to play data read directly from a souncdard. It defaults to hw:0,0, but you can pass any ALSA device name in the URI. So, using mpc for example: mpc add alsa:// mpc play will play from device hw:0,0. To use a diffferent device: mpc add alsa://hw:1,0
2013-12-19output/osx: fix typoMax Kellermann1-1/+1
2013-12-19util/fifo_buffer: remove obsolete libraryMax Kellermann3-383/+0
2013-12-19output/osx: use DynamicFifoBuffer instead of struct fifo_bufferMax Kellermann1-26/+21
2013-12-19util/PeakBuffer: use IsEmpty() instead of IsNull()Max Kellermann2-4/+4
The DynamicFifoBuffer methods never return nullptr when the buffer is empty or full; instead, they return an empty buffer. This bug caused an endless loop.
2013-12-16util/{Domain,Error}: relicense to BSD 2-clauseMax Kellermann3-43/+73
2013-12-15util/PeakBuffer: use DynamicFifoBuffer instead of struct fifo_bufferMax Kellermann3-48/+36
Switch to the C++ version.
2013-12-15util/PeakBuffer: return ConstBuffer<void>Max Kellermann3-11/+16
2013-12-15util/WritableBuffer: add cast methodsMax Kellermann1-1/+30
2013-12-15util/WritableBuffer: fix indentMax Kellermann1-31/+31
2013-12-15util/DynamicFifoBuffer: make constructor "explicit"Max Kellermann1-1/+1
2013-12-15mixer/alsa: fix deadlockMax Kellermann1-1/+13
This deadlock was a regression by commit 8e38b4f8. Since we currently can't resolve this, let's revert the commit, and add a GLib specific workaround for the build failure.
2013-12-15configure.ac: add option "--disable-glib"Max Kellermann6-3/+35
Allows building without GLib. This fails to compile currently, because GLib is still used in the MPD core.
2013-12-15Daemon: use strdup() instead of g_strdup()Max Kellermann1-5/+3
2013-12-15util/Tokenizer, ...: include cleanupMax Kellermann6-12/+0
2013-12-15system/SocketError, ...: use strerror() instead of g_strerror()Max Kellermann4-9/+14
Avoid GLib.
2013-12-15LogInit: move backend code to LogBackend.cxxMax Kellermann3-175/+206
2013-12-15Log: move Log() to LogBackend.cxxMax Kellermann2-33/+59
Prepare for GLib removal.
2013-12-15Log: move enum LogLevel to LogLevel.hxxMax Kellermann2-36/+60
2013-12-15UriUtil: add function uri_get_scheme()Max Kellermann3-7/+20
Replaces g_uri_parse_scheme().
2013-12-14output/alsa: use new[] instead of g_malloc()Max Kellermann1-6/+5
2013-12-14playlist/soundcloud: fix coding styleMax Kellermann1-15/+21
2013-12-14playlist/soundcloud: make variables more localMax Kellermann1-21/+17
2013-12-14input/despotify: don't log "eof" flag after setting itMax Kellermann1-1/+1
2013-12-14input/despotify: convert to classMax Kellermann1-45/+73
2013-12-14decoder/flac: simplify the comment parsersMax Kellermann1-30/+26
2013-12-14decoder/flac: VorbisComment_Entry is null-terminatedMax Kellermann1-19/+6
Don't duplicate the buffer just to null-terminate the string. According to libFLAC API documentation, the string is already null-terminated.
2013-12-14util/SplitString: new utility classMax Kellermann4-20/+119
To replace g_strdup().
2013-12-14decoder/vorbis: remove useless castMax Kellermann1-1/+1
2013-12-14decoder/mad: use new[] instead of g_malloc()Max Kellermann1-9/+9
2013-12-14DecoderAPI: add function decoder_read_full()Max Kellermann3-12/+31
Move code from the "mad" plugin.
2013-12-14DecoderAPI: add function decoder_skip()Max Kellermann3-14/+25
Move code from the "mad" plugin.
2013-12-13Tag: swap "base" and "add" in method Merge()Max Kellermann1-2/+2
Fixes broken CUE sheet song tags (regression by commmit 7e8d254b).
2013-12-13mixer/alsa: use BlockingCall() instead of EventLoop::AddCall()Max Kellermann1-1/+2
This is safer, and works without epoll(). Fixes a build failure with uClibc, which does not support epoll().
2013-12-10SongUpdate: accept files without metadatamobidyc1-2/+1
If the file was recognized by a decoder plugin, accept it - don't require metadata.
2013-12-10TagFile: add return value API documentationMax Kellermann1-0/+3
2013-12-10output/osx: fix build failureLukas Stabe1-3/+3
2013-12-08CommandLine: refactor config search, use standard directory APIDenis Krjuchkov1-41/+49
2013-12-08Main: use standard directory APIDenis Krjuchkov1-7/+4
2013-12-08ConfigPath: use standard directory APIDenis Krjuchkov1-6/+7
2013-12-08fs: implemented standard directories APIDenis Krjuchkov2-0/+358
2013-12-08TextFile: move to fs subsystemDenis Krjuchkov11-9/+9
2013-12-05util/DynamicFifoBuffer: new class replacing growing_fifoMax Kellermann6-230/+229
2013-12-05fs/FileSystem.hxx: don't define CheckAccess() with mode on WindowsDenis Krjuchkov1-8/+2
2013-12-05db/SimpleDatabasePlugin.cxx: don't use CheckAccess with mode on WindowsDenis Krjuchkov1-2/+5
2013-12-05fs/FileSystem.hxx: add CheckAccess without mode parameterDenis Krjuchkov1-0/+14
2013-12-05fs/Traits.cxx: don't return drive path without trailing separatorDenis Krjuchkov1-0/+4
2013-12-05fs/Traits.hxx: introduce PathTraitsXXX::IsDrive functionDenis Krjuchkov1-2/+16
2013-12-05fs/Charset.cxx: replace \ with / when converting path to UTF-8 on WindowsDenis Krjuchkov1-3/+24
2013-12-05PlaylistSong.cxx: don't use g_build_filenameDenis Krjuchkov1-4/+6