From b6251c69681edf4b9dd8fcf421c6839017dacc4b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 26 Oct 2017 12:24:47 +0200 Subject: [PATCH] pcm/Export: add "noexcept" --- src/pcm/PcmExport.cxx | 4 ++-- src/pcm/PcmExport.hxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pcm/PcmExport.cxx b/src/pcm/PcmExport.cxx index 1054dba4c..3d928e41d 100644 --- a/src/pcm/PcmExport.cxx +++ b/src/pcm/PcmExport.cxx @@ -34,7 +34,7 @@ void PcmExport::Open(SampleFormat sample_format, unsigned _channels, - Params params) + Params params) noexcept { assert(audio_valid_sample_format(sample_format)); @@ -149,7 +149,7 @@ PcmExport::Params::CalcInputSampleRate(unsigned sample_rate) const noexcept } ConstBuffer -PcmExport::Export(ConstBuffer data) +PcmExport::Export(ConstBuffer data) noexcept { if (alsa_channel_order != SampleFormat::UNDEFINED) data = ToAlsaChannelOrder(order_buffer, data, diff --git a/src/pcm/PcmExport.hxx b/src/pcm/PcmExport.hxx index 706a1131a..3ca95dc41 100644 --- a/src/pcm/PcmExport.hxx +++ b/src/pcm/PcmExport.hxx @@ -155,12 +155,12 @@ public: * @param channels the number of channels; ignored unless dop is set */ void Open(SampleFormat sample_format, unsigned channels, - Params params); + Params params) noexcept; /** * Reset the filter's state, e.g. drop/flush buffers. */ - void Reset() { + void Reset() noexcept { } /** @@ -175,7 +175,7 @@ public: * @param src the source PCM buffer * @return the destination buffer (may be a pointer to the source buffer) */ - ConstBuffer Export(ConstBuffer src); + ConstBuffer Export(ConstBuffer src) noexcept; /** * Converts the number of consumed bytes from the pcm_export()