2012-03-20 01:01:12 +01:00
|
|
|
/*
|
2019-06-17 11:17:30 +02:00
|
|
|
* Copyright 2003-2019 The Music Player Daemon Project
|
2012-03-20 01:01:12 +01:00
|
|
|
* http://www.musicpd.org
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
2014-08-31 16:12:26 +02:00
|
|
|
#ifndef MPD_PCM_DOP_HXX
|
|
|
|
#define MPD_PCM_DOP_HXX
|
2012-03-20 01:01:12 +01:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2013-08-07 18:46:58 +02:00
|
|
|
class PcmBuffer;
|
2014-08-12 21:38:36 +02:00
|
|
|
template<typename T> struct ConstBuffer;
|
2012-03-20 01:01:12 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Pack DSD 1 bit samples into (padded) 24 bit PCM samples for
|
2014-08-31 16:12:26 +02:00
|
|
|
* playback over USB, according to the DoP standard:
|
|
|
|
* http://dsd-guide.com/dop-open-standard
|
2012-03-20 01:01:12 +01:00
|
|
|
*/
|
2014-08-12 21:38:36 +02:00
|
|
|
ConstBuffer<uint32_t>
|
2014-08-31 16:12:26 +02:00
|
|
|
pcm_dsd_to_dop(PcmBuffer &buffer, unsigned channels,
|
2017-10-26 12:27:48 +02:00
|
|
|
ConstBuffer<uint8_t> src) noexcept;
|
2012-03-20 01:01:12 +01:00
|
|
|
|
|
|
|
#endif
|