summaryrefslogtreecommitdiff
path: root/test/test_pcm_channels.cxx
AgeCommit message (Collapse)Author
2021-01-01copyright year 2021Max Kellermann
2020-01-18copyright year 2020Max Kellermann
2019-06-17pcm/Pcm*: drop more "Pcm" prefixes from source file namesMax Kellermann
2019-06-17Copyright year 2019Max Kellermann
2018-11-19check.h: remove obsolete headerMax Kellermann
Since we switched from autotools to Meson in commit 94592c14062d5afc9482d11baa401648082022c0, we don't need to include `config.h` early to properly enable large file support. Meson passes the required macros on the compiler command line instead of defining them in `config.h`. This means we can include `config.h` at any time, whenever we want to check its macros, and there are no ordering constraints.
2018-10-31*: copyright year 2018Max Kellermann
2018-10-16test: use GTest instead of cppunitMax Kellermann
2017-01-19pcm/PcmChannels: silence surround channels when converting from stereoMax Kellermann
Previously, there was no special code to convert stereo to multi-channel. The generic solution for this was to convert to mono, and then copy the result to all channels. That's a pretty bad solution, but at least something which always renders audio. MPD does something, instead of failing. Now that MPD has proper support for multi-channel (by defining the channel order), we can do better than that. It is a (somewhat) common case to play back stereo music on a DAC which can only do multi-channel. The best approach here is to copy the stereo channels to front-left and front-right, and apply the "silence" pattern to all other channels.
2017-01-03update copyright yearMax Kellermann
2016-02-26update copyright year to 2016Max Kellermann
2015-01-01Copyright year 2015Max Kellermann
2014-03-15test/test_pcm: replace 256 with prime numberMax Kellermann
Use some odd number that will expose problems with remaining samples after optimized vector operations.
2014-03-01util/{Const,Writable}Buffer: add operator[]Max Kellermann
2014-01-13copyright year 2014Max Kellermann
2013-12-02pcm/PcmChannels: use struct ConstBufferMax Kellermann
2013-10-16test: use the CPPUNIT framework for unit testsMax Kellermann
2013-07-30pcm_buffer: convert to C++Max Kellermann
2013-04-09pcm_*: move to src/pcm/Max Kellermann
2013-01-31test/test_pcm: merge source buffer generatorMax Kellermann
2013-01-31pcm_*: convert to C++Max Kellermann
2013-01-31test/test_pcm: convert to C++Max Kellermann