mixer/Control: add noexcept
This commit is contained in:
parent
3eedcc55b9
commit
e1e8f45983
@ -36,7 +36,7 @@ mixer_new(EventLoop &event_loop,
|
||||
}
|
||||
|
||||
void
|
||||
mixer_free(Mixer *mixer)
|
||||
mixer_free(Mixer *mixer) noexcept
|
||||
{
|
||||
assert(mixer != nullptr);
|
||||
|
||||
@ -66,7 +66,7 @@ mixer_open(Mixer &mixer)
|
||||
}
|
||||
|
||||
static void
|
||||
mixer_close_internal(Mixer &mixer)
|
||||
mixer_close_internal(Mixer &mixer) noexcept
|
||||
{
|
||||
assert(mixer.open);
|
||||
|
||||
@ -76,7 +76,7 @@ mixer_close_internal(Mixer &mixer)
|
||||
}
|
||||
|
||||
void
|
||||
mixer_close(Mixer &mixer)
|
||||
mixer_close(Mixer &mixer) noexcept
|
||||
{
|
||||
const std::scoped_lock<Mutex> protect(mixer.mutex);
|
||||
|
||||
@ -85,7 +85,7 @@ mixer_close(Mixer &mixer)
|
||||
}
|
||||
|
||||
void
|
||||
mixer_auto_close(Mixer &mixer)
|
||||
mixer_auto_close(Mixer &mixer) noexcept
|
||||
{
|
||||
if (!mixer.IsGlobal())
|
||||
mixer_close(mixer);
|
||||
|
@ -42,7 +42,7 @@ mixer_new(EventLoop &event_loop, const MixerPlugin &plugin,
|
||||
const ConfigBlock &block);
|
||||
|
||||
void
|
||||
mixer_free(Mixer *mixer);
|
||||
mixer_free(Mixer *mixer) noexcept;
|
||||
|
||||
/**
|
||||
* Throws std::runtime_error on error.
|
||||
@ -51,14 +51,14 @@ void
|
||||
mixer_open(Mixer &mixer);
|
||||
|
||||
void
|
||||
mixer_close(Mixer &mixer);
|
||||
mixer_close(Mixer &mixer) noexcept;
|
||||
|
||||
/**
|
||||
* Close the mixer unless the plugin's "global" flag is set. This is
|
||||
* called when the #AudioOutput is closed.
|
||||
*/
|
||||
void
|
||||
mixer_auto_close(Mixer &mixer);
|
||||
mixer_auto_close(Mixer &mixer) noexcept;
|
||||
|
||||
/**
|
||||
* Throws std::runtime_error on error.
|
||||
|
Loading…
Reference in New Issue
Block a user