| 192 | } |
| 193 | |
| 194 | void |
| 195 | HttpdOutput::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 | |
| 212 | void |
| 213 | HttpdOutput::Close() noexcept |