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