| 33 | } |
| 34 | |
| 35 | static std::unique_ptr<FilteredAudioOutput> |
| 36 | LoadOutput(EventLoop &event_loop, EventLoop &rt_event_loop, |
| 37 | const ReplayGainConfig &replay_gain_config, |
| 38 | MixerListener &mixer_listener, |
| 39 | const ConfigBlock &block, |
| 40 | const AudioOutputDefaults &defaults, |
| 41 | FilterFactory *filter_factory) |
| 42 | try { |
| 43 | return audio_output_new(event_loop, rt_event_loop, replay_gain_config, block, |
| 44 | defaults, |
| 45 | filter_factory, |
| 46 | mixer_listener); |
| 47 | } catch (...) { |
| 48 | if (block.line > 0) |
| 49 | std::throw_with_nested(FmtRuntimeError("Failed to configure output in line {}", |
| 50 | block.line)); |
| 51 | else |
| 52 | throw; |
| 53 | } |
| 54 | |
| 55 | static std::unique_ptr<AudioOutputControl> |
| 56 | LoadOutputControl(EventLoop &event_loop, EventLoop &rt_event_loop, |
no test coverage detected