MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / ~AudioStream

Method ~AudioStream

src/Abyss/Streams/AudioStream.cpp:167–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167Abyss::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
179int16_t Abyss::Streams::AudioStream::getSample() {
180 std::lock_guard lock(_mutex);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected