lib/alsa: add "noexcept"
This commit is contained in:
parent
ddabe1a6df
commit
2a6d5583d1
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user