| 165 | } |
| 166 | |
| 167 | Abyss::Streams::AudioStream::~AudioStream() { |
| 168 | av_free(_avioContext->buffer); |
| 169 | avio_context_free(&_avioContext); |
| 170 | if (_audioStreamIdx >= 0) { |
| 171 | avcodec_free_context(&_audioCodecContext); |
| 172 | swr_free(&_resampleContext); |
| 173 | } |
| 174 | av_frame_free(&_avFrame); |
| 175 | avformat_close_input(&_avFormatContext); |
| 176 | avformat_free_context(_avFormatContext); |
| 177 | } |
| 178 | |
| 179 | int16_t Abyss::Streams::AudioStream::getSample() { |
| 180 | std::lock_guard lock(_mutex); |
nothing calls this directly
no outgoing calls
no test coverage detected