MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / popAudio

Method popAudio

framework/video/smk.cpp:96–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95
96 sp<FrameAudio> popAudio() override
97 {
98 std::lock_guard<std::recursive_mutex> l(this->frame_queue_lock);
99 if (this->audio_queue.empty())
100 {
101 if (this->readNextFrame() == false)
102 {
103 return nullptr;
104 }
105 }
106 auto frame = this->audio_queue.front();
107 this->audio_queue.pop();
108 this->current_frame_audio++;
109 return frame;
110 }
111
112 bool readNextFrame()
113 {

Callers 2

SMKMusicTrackMethod · 0.80
fillDataMethod · 0.80

Calls 3

readNextFrameMethod · 0.95
emptyMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected