Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | event/Loop: remove bogus "!quit" assertion | Max Kellermann | 2014-01-04 | 1 | -5/+3 | |
| | | | | | | | | | | | | | | Commit 1f11959 allowed modifying the "quit" attribute from any thread, and thus the assertion may fail spuriously. This assertion is too strict for the relaxed use of "quit". Let's remove it and move the "quit" check to before the SockedMonitor::Dispatch() call. | |||||
* | | event/Loop: remove unused method AddCall() | Max Kellermann | 2014-01-04 | 2 | -28/+0 | |
| | | ||||||
* | | event/Loop: non-recursive Break() implementation | Max Kellermann | 2014-01-04 | 1 | -4/+2 | |
| | | | | | | | | | | | | Simply set the "quit" flag and wake up the thread. This works even if we're inside this thread. Setting "quit" to a new value without mutex protection is usually not safe, but good enough here. | |||||
* | | mixer/alsa: use DeferredMonitor to update file descriptors | Max Kellermann | 2014-01-04 | 1 | -14/+7 | |
| | | | | | | | | | | EventLoop::AddCall() and EventLoop::AddIdle() are unsafe, because we can't cancel those calls. | |||||
* | | event/BlockingCall: always use DeferredMonitor internally | Max Kellermann | 2014-01-04 | 1 | -24/+0 | |
| | | | | | | | | | | There is no advantage of using EventLoop::AddCall(), now that DeferredMonitor is thread-safe. | |||||
* | | event/DeferredMonitor: make fully thread-safe | Max Kellermann | 2014-01-04 | 4 | -54/+77 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of creating a new eventfd for each DeferredMonitor instance, reuse EventLoop's eventfd, and add a std::list to EventLoop that manages the list of pending DeferredMonitors. This std::list is protected by the same mutex as the "calls" list. The bottom line is: reduced overhead because the per-instance eventfd was eliminated, slightly added overhead due to Mutex usage (but negligible), and we're thread-safe now. This subsystem is now good enough to replace EventLoop::AddCall(). | |||||
* | | Added application key for soundcloud plugin | James McGlashan (DarkFox) | 2014-01-04 | 1 | -1/+2 | |
| | | ||||||
* | | Added user and search paramaters for SoundCloud plugin | James McGlashan (DarkFox) | 2014-01-04 | 1 | -0/+8 | |
| | | ||||||
* | | http -> https for SoundCloud plugin | James McGlashan (DarkFox) | 2014-01-02 | 1 | -6/+6 | |
| | | ||||||
* | | output/httpd: change "struct" to "class" | Max Kellermann | 2013-12-31 | 3 | -4/+7 | |
| | | ||||||
* | | output/httpd: move code to methods Delay(), Play(), Cancel() | Max Kellermann | 2013-12-31 | 2 | -22/+46 | |
| | | ||||||
* | | output/httpd: move Cast() into the class | Max Kellermann | 2013-12-31 | 2 | -25/+23 | |
| | | ||||||
* | | output/httpd: add methods Init(), Finish() | Max Kellermann | 2013-12-31 | 2 | -12/+29 | |
| | | ||||||
* | | output/httpd: use reference instead of pointer | Max Kellermann | 2013-12-31 | 3 | -14/+14 | |
| | | ||||||
* | | output/httpd: make the HttpdClient base class "private" | Max Kellermann | 2013-12-31 | 1 | -1/+1 | |
| | | ||||||
* | | event/*Monitor: document as not being thread-safe | Max Kellermann | 2013-12-31 | 4 | -0/+15 | |
| | | ||||||
* | | event/Loop: document that AddCall() is thread-safe | Max Kellermann | 2013-12-31 | 1 | -0/+5 | |
| | | ||||||
* | | command: "lsinfo" and "readcomments" allowed for remote files | Max Kellermann | 2013-12-29 | 4 | -0/+59 | |
| | | ||||||
* | | SongUpdate: read tags from songs in an archive | Max Kellermann | 2013-12-29 | 3 | -5/+128 | |
| | | | | | | | | | | Add the TagStream.cxx library, similar to TagFile.cxx, and use it to load tags from song files inside archives. | |||||
* | | InputStream: add static method OpenReady() | Max Kellermann | 2013-12-29 | 7 | -15/+41 | |
| | | | | | | | | Merge some duplicate code. | |||||
* | | TagFile: rewind the stream before trying the next plugin | Max Kellermann | 2013-12-29 | 1 | -1/+2 | |
| | | | | | | | | Got lost in commit c97685fe | |||||
* | | DecoderList: add "pure" attribute | Max Kellermann | 2013-12-29 | 1 | -0/+1 | |
| | | ||||||
* | | DecoderList: add function decoder_plugins_supports_suffix() | Max Kellermann | 2013-12-29 | 4 | -54/+20 | |
| | | | | | | | | Replaces decoder_plugin_from_suffix(). | |||||
* | | DecoderThread: use decoder_plugins_try() | Max Kellermann | 2013-12-29 | 1 | -32/+44 | |
| | | | | | | | | | | .. instead of decoder_plugin_from_suffix(). This reduces overhead by walking the array only once. | |||||
* | | UpdateContainer: pass suffix instead of DecoderPlugin | Max Kellermann | 2013-12-29 | 3 | -6/+18 | |
| | | | | | | | | | | Instead of using the first DecoderPlugin that supports the suffix, use the first one that actually implements the "container_scan" method. | |||||
* | | TagFile: pass reference instead of pointer | Max Kellermann | 2013-12-29 | 5 | -9/+6 | |
| | | ||||||
* | | TagFile: use decoder_plugins_try() | Max Kellermann | 2013-12-29 | 1 | -41/+54 | |
| | | | | | | | | | | | | .. instead of decoder_plugin_from_suffix(). This reduces overhead by walking the array only once. | |||||
* | | DecoderList: remove unused function decoder_plugin_from_mime_type() | Max Kellermann | 2013-12-29 | 2 | -25/+0 | |
| | | ||||||
* | | Merge branch 'v0.18.x' | Max Kellermann | 2013-12-29 | 1 | -8/+11 | |
|\| | ||||||
| * | daemon: no initgroups() when already running as the configured user | Max Kellermann | 2013-12-29 | 1 | -1/+5 | |
| | | | | | | | | | | We can assume that initgroups() would be a no-op in that case, however initgroups() is not allowed for unprivileged users anyway. | |||||
| * | Daemon: fix typo in comment | Max Kellermann | 2013-12-29 | 1 | -1/+1 | |
| | | ||||||
| * | Daemon: simplify nested "if" | Max Kellermann | 2013-12-29 | 1 | -5/+4 | |
| | | ||||||
| * | Daemon: fix typo in cast | Max Kellermann | 2013-12-29 | 1 | -1/+1 | |
| | | ||||||
* | | input/smbclient: new input plugin | Max Kellermann | 2013-12-29 | 4 | -0/+238 | |
| | | ||||||
* | | ls: add "pure" attribute | Max Kellermann | 2013-12-29 | 1 | -0/+3 | |
| | | ||||||
* | | pcm/Volume: remove unused function pcm_volume_dither() | Max Kellermann | 2013-12-28 | 1 | -16/+0 | |
| | | ||||||
* | | pcm/PcmMix: improved dithering | Max Kellermann | 2013-12-28 | 4 | -19/+38 | |
| | | | | | | | | Use the existing PcmDither library. | |||||
* | | pcm/Volume: improved dithering | Max Kellermann | 2013-12-28 | 4 | -20/+54 | |
| | | | | | | | | | | Instead of just adding a rectangular random value before shifting back to the normal scale, use the existing PcmDither library. | |||||
* | | pcm/PcmDither: inline Dither24To16() and Dither32To16() | Max Kellermann | 2013-12-28 | 2 | -3/+4 | |
| | | ||||||
* | | pcm/Volume: remove optimized i386 assembly | Max Kellermann | 2013-12-28 | 1 | -50/+0 | |
| | | | | | | | | | | This code is unable to dither. Until we implement that, let's remove the code for now. i386 isn't relevant anymore anyway. | |||||
* | | pcm/Traits: use 32 bit integer for S8 long_type | Max Kellermann | 2013-12-25 | 1 | -1/+1 | |
| | | | | | | | | 16 bit is not enough for volume calculations. | |||||
* | | pcm/Dither: add API documentation | Max Kellermann | 2013-12-24 | 1 | -0/+18 | |
| | | ||||||
* | | pcm/Dither: move shift from DitherConvert() to Dither() | Max Kellermann | 2013-12-24 | 1 | -2/+2 | |
| | | | | | | | | All callers need this shift, so let's move it to the basic method. | |||||
* | | pcm/Dither: rename DitherShift() to DitherConvert() | Max Kellermann | 2013-12-24 | 2 | -11/+11 | |
| | | ||||||
* | | Merge tag 'release-0.18.6' | Max Kellermann | 2013-12-24 | 5 | -7/+15 | |
|\| | ||||||
| * | PlayerThread: log the last song that was played | Max Kellermann | 2013-12-24 | 1 | -1/+4 | |
| | | ||||||
| * | OutputControl: update both ReplayGainFilters | Max Kellermann | 2013-12-24 | 1 | -0/+2 | |
| | | | | | | | | | | The "mode" of the second ReplayGainFilter was never set, and thus replay gain was never applied to the new song during cross-fade. | |||||
| * | fix FfmpegDecoderPlugin to use relative timestamps | Steven O'Brien | 2013-12-20 | 1 | -4/+6 | |
| | | ||||||
| * | util/Error: add missing <algorithm> include | Max Kellermann | 2013-12-19 | 1 | -0/+1 | |
| | | | | | | | | For std::move(). | |||||
| * | riff: recognize upper-case "ID3" chunk name | Michal Smucr | 2013-12-19 | 1 | -1/+2 | |
| | | | | | | | | Some tagging libraries (eg. TagLib) produce that variant. |