MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / Open

Method Open

src/output/plugins/httpd/HttpdOutputPlugin.cxx:194–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void
195HttpdOutput::Open(AudioFormat &audio_format)
196{
197 assert(!open);
198 assert(clients.empty());
199
200 const std::lock_guard protect{mutex};
201
202 OpenEncoder(audio_format);
203
204 /* initialize other attributes */
205
206 timer = new Timer(audio_format);
207
208 open = true;
209 pause = false;
210}
211
212void
213HttpdOutput::Close() noexcept

Callers 1

OpenEncoderMethod · 0.45

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected