lib/alsa: add "noexcept"

This commit is contained in:
Max Kellermann 2017-10-26 08:24:14 +02:00
parent ddabe1a6df
commit 2a6d5583d1
3 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@
std::chrono::steady_clock::duration
PrepareAlsaPcmSockets(MultiSocketMonitor &m, snd_pcm_t *pcm,
ReusableArray<pollfd> &pfd_buffer)
ReusableArray<pollfd> &pfd_buffer) noexcept
{
int count = snd_pcm_poll_descriptors_count(pcm);
if (count <= 0) {
@ -43,7 +43,7 @@ PrepareAlsaPcmSockets(MultiSocketMonitor &m, snd_pcm_t *pcm,
std::chrono::steady_clock::duration
PrepareAlsaMixerSockets(MultiSocketMonitor &m, snd_mixer_t *mixer,
ReusableArray<pollfd> &pfd_buffer)
ReusableArray<pollfd> &pfd_buffer) noexcept
{
int count = snd_mixer_poll_descriptors_count(mixer);
if (count <= 0) {

View File

@ -36,7 +36,7 @@ class MultiSocketMonitor;
*/
std::chrono::steady_clock::duration
PrepareAlsaPcmSockets(MultiSocketMonitor &m, snd_pcm_t *pcm,
ReusableArray<pollfd> &pfd_buffer);
ReusableArray<pollfd> &pfd_buffer) noexcept;
/**
* Update #MultiSocketMonitor's socket list from
@ -45,6 +45,6 @@ PrepareAlsaPcmSockets(MultiSocketMonitor &m, snd_pcm_t *pcm,
*/
std::chrono::steady_clock::duration
PrepareAlsaMixerSockets(MultiSocketMonitor &m, snd_mixer_t *mixer,
ReusableArray<pollfd> &pfd_buffer);
ReusableArray<pollfd> &pfd_buffer) noexcept;
#endif

View File

@ -26,7 +26,7 @@
static constexpr uint_least32_t
MakeAlsaVersion(uint_least32_t major, uint_least32_t minor,
uint_least32_t subminor)
uint_least32_t subminor) noexcept
{
return (major << 16) | (minor << 8) | subminor;
}