diff options
author | Max Kellermann <max@duempel.org> | 2016-02-26 18:15:16 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-02-27 07:41:58 +0100 |
commit | d1be643c0de70c865043127edb042a02f51d3c6d (patch) | |
tree | 976d0e4880173753d016dfc5ad5510ad3d9f1369 /src/pcm/PcmDsd.hxx | |
parent | c9761bf6afd5cad2f2d1e3379016cb61be8ee69b (diff) |
pcm/PcmDsd: add converter from DSD_U8 to DSD_U32
Diffstat (limited to 'src/pcm/PcmDsd.hxx')
-rw-r--r-- | src/pcm/PcmDsd.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pcm/PcmDsd.hxx b/src/pcm/PcmDsd.hxx index 3d039bc36..ba0615252 100644 --- a/src/pcm/PcmDsd.hxx +++ b/src/pcm/PcmDsd.hxx @@ -48,4 +48,10 @@ public: ConstBuffer<uint8_t> src); }; +/** + * Convert DSD_U8 to DSD_U32 (native endian). + */ +ConstBuffer<uint32_t> +Dsd8To32(PcmBuffer &buffer, unsigned channels, ConstBuffer<uint8_t> src); + #endif |