pcm/Export: add "noexcept"
This commit is contained in:
parent
c51fe089ba
commit
b6251c6968
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
void
|
void
|
||||||
PcmExport::Open(SampleFormat sample_format, unsigned _channels,
|
PcmExport::Open(SampleFormat sample_format, unsigned _channels,
|
||||||
Params params)
|
Params params) noexcept
|
||||||
{
|
{
|
||||||
assert(audio_valid_sample_format(sample_format));
|
assert(audio_valid_sample_format(sample_format));
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ PcmExport::Params::CalcInputSampleRate(unsigned sample_rate) const noexcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
ConstBuffer<void>
|
ConstBuffer<void>
|
||||||
PcmExport::Export(ConstBuffer<void> data)
|
PcmExport::Export(ConstBuffer<void> data) noexcept
|
||||||
{
|
{
|
||||||
if (alsa_channel_order != SampleFormat::UNDEFINED)
|
if (alsa_channel_order != SampleFormat::UNDEFINED)
|
||||||
data = ToAlsaChannelOrder(order_buffer, data,
|
data = ToAlsaChannelOrder(order_buffer, data,
|
||||||
|
@ -155,12 +155,12 @@ public:
|
|||||||
* @param channels the number of channels; ignored unless dop is set
|
* @param channels the number of channels; ignored unless dop is set
|
||||||
*/
|
*/
|
||||||
void Open(SampleFormat sample_format, unsigned channels,
|
void Open(SampleFormat sample_format, unsigned channels,
|
||||||
Params params);
|
Params params) noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reset the filter's state, e.g. drop/flush buffers.
|
* 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
|
* @param src the source PCM buffer
|
||||||
* @return the destination buffer (may be a pointer to the source buffer)
|
* @return the destination buffer (may be a pointer to the source buffer)
|
||||||
*/
|
*/
|
||||||
ConstBuffer<void> Export(ConstBuffer<void> src);
|
ConstBuffer<void> Export(ConstBuffer<void> src) noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts the number of consumed bytes from the pcm_export()
|
* Converts the number of consumed bytes from the pcm_export()
|
||||||
|
Loading…
Reference in New Issue
Block a user