diff options
author | Max Kellermann <max@musicpd.org> | 2017-10-26 12:27:48 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-10-26 12:28:59 +0200 |
commit | c51fe089ba2dc590892d9f183d9a2fa73a1256bd (patch) | |
tree | 50971cb8cebee29a89abac3ce73133f70a3b5485 /src/pcm | |
parent | fee9f1482c0f593b43f88b2fd589c10d5176e639 (diff) |
pcm/Dop: add "noexcept"
Diffstat (limited to 'src/pcm')
-rw-r--r-- | src/pcm/PcmDop.cxx | 6 | ||||
-rw-r--r-- | src/pcm/PcmDop.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pcm/PcmDop.cxx b/src/pcm/PcmDop.cxx index 8fad889c2..f4f1e6c8d 100644 --- a/src/pcm/PcmDop.cxx +++ b/src/pcm/PcmDop.cxx @@ -27,21 +27,21 @@ constexpr static inline uint32_t -pcm_two_dsd_to_dop_marker1(uint8_t a, uint8_t b) +pcm_two_dsd_to_dop_marker1(uint8_t a, uint8_t b) noexcept { return 0xff050000 | (a << 8) | b; } constexpr static inline uint32_t -pcm_two_dsd_to_dop_marker2(uint8_t a, uint8_t b) +pcm_two_dsd_to_dop_marker2(uint8_t a, uint8_t b) noexcept { return 0xfffa0000 | (a << 8) | b; } ConstBuffer<uint32_t> pcm_dsd_to_dop(PcmBuffer &buffer, unsigned channels, - ConstBuffer<uint8_t> _src) + ConstBuffer<uint8_t> _src) noexcept { assert(audio_valid_channel_count(channels)); assert(_src.size % channels == 0); diff --git a/src/pcm/PcmDop.hxx b/src/pcm/PcmDop.hxx index 9e8cd8325..7b868c737 100644 --- a/src/pcm/PcmDop.hxx +++ b/src/pcm/PcmDop.hxx @@ -34,6 +34,6 @@ template<typename T> struct ConstBuffer; */ ConstBuffer<uint32_t> pcm_dsd_to_dop(PcmBuffer &buffer, unsigned channels, - ConstBuffer<uint8_t> src); + ConstBuffer<uint8_t> src) noexcept; #endif |