pcm/Dop: add "noexcept"
This commit is contained in:
parent
fee9f1482c
commit
c51fe089ba
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user